Add `uv pip install --python` to README (#2030)

This commit is contained in:
Charlie Marsh 2024-02-27 21:54:33 -05:00 committed by GitHub
parent 10175143d1
commit 3116c371a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -173,6 +173,12 @@ Since uv has no dependency on Python, it can even install into virtual environme
its own. For example, setting `VIRTUAL_ENV=/path/to/venv` will cause uv to install into
`/path/to/venv`, no matter where uv is installed.
Finally, uv can also install into non-virtual environments by providing a `--python` argument to
`pip sync` or `pip install`. For example, `uv pip install --python=/path/to/python` will install
into the environment linked to the `/path/to/python` interpreter. Though we generally recommend the
use of virtual environments for dependency management, this feature can be useful for installing
into system Python installations in continuous integration or containerized environments.
### Git authentication
uv allows packages to be installed from Git and supports the following schemes for authenticating with private