From 3116c371a78fef87f910c6109d601d248e691caf Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Tue, 27 Feb 2024 21:54:33 -0500 Subject: [PATCH] Add `uv pip install --python` to README (#2030) --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 922f6f927..ea35fd865 100644 --- a/README.md +++ b/README.md @@ -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