uv is a Rust-based tool that manages Python dependencies, virtual environments, scripts, and interpreters. It offers a pip-compatible interface and universal lockfiles for projects.
Overview
uv is a Python package and project manager written in Rust. It is intended to cover workflows that otherwise rely on pip, pip-tools, pipx, Poetry, pyenv, virtualenv, and similar tools, with a single CLI and a global cache for deduplicated dependencies.
Project workflows support init, add, lock, sync, run, build, and publish, including Cargo-style workspaces. Single-file scripts can declare inline dependency metadata and run in isolated environments. The tool command installs and runs Python CLIs similarly to pipx, including the uvx alias for ephemeral runs.
uv downloads and pins Python versions, creates virtual environments, and exposes a pip drop-in for compile, venv, and sync commands with platform-independent and reproducible resolution options. It installs on macOS, Linux, and Windows via standalone curl or pip installers without requiring Rust to be present first.
Documentation is published on the project docs site, and the help subcommand documents the CLI. The resolver builds on PubGrub, and parts of the implementation draw on patterns from Cargo and other packaging tools.
Key features
- Project lockfiles and workspaces
- Inline script dependencies
- Python version install and pin
- pip-compatible pip subcommand
- Global dependency cache
- uvx ephemeral tool runs
- Tool install like pipx
- Build and publish support
Use cases
- Replacing pip and virtualenv workflows
- Managing Poetry-like projects
- Running one-off Python tools
- Pinning and syncing environments
- Compiling universal requirements files