LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

uv-pip

Fast pip-compatible package management interface

TLDR

Install a package into the active environment
$ uv pip install [package]
copy
Install from a requirements file
$ uv pip install -r requirements.txt
copy
Install into the system Python (no virtualenv)
$ uv pip install --system [package]
copy
Uninstall a package
$ uv pip uninstall [package]
copy
List installed packages
$ uv pip list
copy
Freeze environment to requirements format
$ uv pip freeze
copy
Compile a `pyproject.toml` or `requirements.in` to a pinned `requirements.txt`
$ uv pip compile [requirements.in] -o requirements.txt
copy
Sync environment to exactly match a requirements file
$ uv pip sync requirements.txt
copy

SYNOPSIS

uv pip subcommand [options] [arguments]

DESCRIPTION

uv pip provides pip-compatible commands powered by uv's Rust-based resolver and installer. It is a drop-in replacement for `pip`, `pip-tools`, and `virtualenv` for non-project workflows, typically 10-100x faster.Unlike `pip`, `uv pip` does not automatically create or activate a virtual environment. It either uses the active `.venv` / `VIRTUAL_ENV` or requires `--system` to operate on the system Python.

PARAMETERS

-r, --requirement FILE

Install from the given requirements file (repeatable).
-e, --editable PATH
Install a project in editable mode.
-U, --upgrade
Allow upgrading already-installed packages.
--system
Operate on the system Python rather than a virtual environment.
--python PATH
Use the specified Python interpreter.
--index-url URL
Override the package index URL.
--no-deps
Skip installing dependencies.
--reinstall
Reinstall all packages even if already installed.
--dry-run
Resolve without modifying the environment.

SUBCOMMANDS

install packages

Install packages into the environment.
uninstall packages
Remove packages from the environment.
list
List installed packages.
freeze
Output installed packages in requirements format.
show package
Show package metadata and location.
check
Verify the environment has compatible dependencies.
compile input
Resolve and pin dependencies to a lockfile-style requirements.txt.
sync requirements
Install/uninstall packages so the environment matches the file exactly.
tree
Display the dependency tree of installed packages.

CAVEATS

`uv pip` is intended for ad-hoc package management. For project-based workflows with a lockfile, prefer `uv add`/`uv sync`/`uv lock` which manage `pyproject.toml` and `uv.lock` directly.

SEE ALSO

uv(1), pip(1), pipx(1), poetry(1)

Copied to clipboard
Kai