mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-11 22:34:53 +08:00
If one has some UV and non-UV environments locally, one shoudl call `uv pip install` only on the UV-enabled ones, which could be detected by checking if `uv/python` path is present in `sys.base_prefix` Fixes https://github.com/pytorch/pytorch/issues/152999 Pull Request resolved: https://github.com/pytorch/pytorch/pull/155972 Approved by: https://github.com/janeyx99