An extremely fast Python package and project manager, written in Rust.
Installing Trio's dependencies with a warm cache.
- 🚀 A single tool to replace pip, pip-tools, pipx, poetry, pyenv, twine, virtualenv, and more.
- ⚡️ 10-100x faster than pip.
- 🗂️ Provides comprehensive project management, with a universal lockfile.
- ❇️ Runs scripts, with support for inline dependency metadata.
- 🐍 Installs and manages Python versions.
- 🛠️ Runs and installs tools published as Python packages.
- 🔩 Includes a pip-compatible interface for a performance boost with a familiar CLI.
- 🏢 Supports Cargo-style workspaces for scalable projects.
- 💾 Disk-space efficient, with a global cache for dependency deduplication.
- ⏬ Installable without Rust or Python via curl or pip.
- 🖥️ Supports macOS, Linux, and Windows.
uv is backed by Astral, the creators of Ruff.
Install uv with our standalone installers:
Or, from PyPI:
If installed via the standalone installer, uv can update itself to the latest version:
See the installation documentation for details and alternative installation methods.
uv's documentation is available at docs.astral.sh/uv.
Additionally, the command line reference documentation can be viewed with uv help.
uv manages project dependencies and environments, with support for lockfiles, workspaces, and more, similar to rye or poetry:
See the project documentation to get started.
uv also supports building and publishing projects, even if they're not managed with uv. See the publish guide to learn more.
uv manages dependencies and environments for single-file scripts.
Create a new script and add inline metadata declaring its dependencies:
Then, run the script in an isolated virtual environment:
See the scripts documentation to get started.
uv executes and installs command-line tools provided by Python packages, similar to pipx.
Run a tool in an ephemeral environment using uvx (an alias for uv tool run):
Install a tool with uv tool install:
See the tools documentation to get started.
uv installs Python and allows quickly switching between versions.
Install multiple Python versions:
Download Python versions as needed:
Use a specific Python version in the current directory:
See the Python installation documentation to get started.
uv provides a drop-in replacement for common pip, pip-tools, and virtualenv commands.
uv extends their interfaces with advanced features, such as dependency version overrides, platform-independent resolutions, reproducible resolutions, alternative resolution strategies, and more.
Migrate to uv without changing your existing workflows — and experience a 10-100x speedup — with the uv pip interface.
Compile requirements into a platform-independent requirements file:
Create a virtual environment:
Install the locked requirements:
See the pip interface documentation to get started.
See uv's platform support document.
See uv's versioning policy document.
We are passionate about supporting contributors of all levels of experience and would love to see you get involved in the project. See the contributing guide to get started.
It's pronounced as "you - vee" (/juː viː/)
Just "uv", please. See the style guide for details.
uv's dependency resolver uses PubGrub under the hood. We're grateful to the PubGrub maintainers, especially Jacob Finkelman, for their support.
uv's Git implementation is based on Cargo.
Some of uv's optimizations are inspired by the great work we've seen in pnpm, Orogene, and Bun. We've also learned a lot from Nathaniel J. Smith's Posy and adapted its trampoline for Windows support.
uv is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in uv by you, as defined in the Apache-2.0 license, shall be dually licensed as above, without any additional terms or conditions.