uv: Rust-Powered Python Manager 10-100x Faster Than Pip
uv replaces pip, poetry, pyenv, pipx and more as a single Rust tool that's 10-100x faster, managing projects, scripts, tools, Python versions, and lockfiles with global caching.
Achieve 10-100x Speedups by Consolidating Python Tools
uv, written in Rust, unifies pip, pip-tools, pipx, poetry, pyenv, twine, virtualenv and others into one binary. Benchmarks show it resolves and installs packages 10-100x faster than pip—for example, installing Trio's dependencies with a warm cache completes in under 100ms versus seconds or minutes for alternatives. Use a global cache for disk-efficient deduplication across projects. Install via curl on macOS/Linux (curl -LsSf https://astral.sh/uv/install.sh | sh) or PowerShell on Windows (powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"), no Rust or Python required. Supports macOS, Linux, Windows.
Manage Full Project Lifecycles with Lockfiles and Workspaces
Initialize projects with uv init example, add dependencies like uv add ruff (auto-creates .venv, resolves 2 packages in 170ms, installs in 1ms). Run with uv run ruff check, lock via uv lock (resolves in 0.33ms), and sync on CI/other machines with uv sync. Lockfiles are universal and platform-independent. Build/export distributions, configure via pyproject.toml or uv.toml, and scale with Cargo-style workspaces for monorepos. Publish packages directly, even from non-uv projects.
Handle Scripts, Tools, and Python Versions Seamlessly
For scripts, add inline deps (uv add --script example.py requests) then run in isolated envs (uv run example.py installs 5 packages in 12ms). Tools mimic pipx: uvx pycowsay 'hello world!' (resolves/installs in 176ms) or uv tool install ruff (installs in 2ms, adds to PATH). Manage Pythons with uv python install 3.10 3.11 3.12 (3 versions in 3.42s), pin per-dir (uv python pin 3.11), or use specific (uv run --python 3.12.0 python, uv venv --python 3.12.0).
Drop-in Pip Replacement with Advanced Features
uv pip matches pip CLI but adds overrides, universal installs, and reproducibility. Compile requirements.in to platform-agnostic requirements.txt (uv pip compile --universal, resolves 43 packages in 12ms). Create venvs (uv venv), sync (uv pip sync requirements.txt installs 43 packages in 208ms). Extend workflows without changes for immediate 10-100x gains.