uv¶
uv is an extremely fast, unified Python package and project manager written in Rust. It serves as a drop-in replacement for pip, pip-tools, pipx, poetry, pyenv, virtualenv, and more.
Installation¶
You can install uv using Astral's standalone installer, or via package managers.
Config¶
uv can be configured globally using a uv.toml or per-project in pyproject.toml under the [tool.uv] table.
Usage¶
Project Management¶
1. Initialize a new project
2. Add dependencies
3. Run a script/command in the environment
4. Lock and sync dependencies
Pip-Compatible Interface¶
uv provides a fast alternative to standard pip commands under the uv pip namespace.
1. Create a virtual environment
2. Install packages
3. Compile dependencies