uv
- is an extremely fast Python package and project manager
- written in Rust
- it was created by Astral (the same team behind
ruff) - replaces several separate tools—like
pip,pip-tools,venv,poetry, andpyenv—with a single, unified, and significantly faster executable
Replaces
- Replaces
pip: For installing packages - Replaces
venv: For managing virtual environments - Replaces
pyenv: For installing different versions of Python (3.10, 3.12, etc.) - Replaces
pip-tools: For creating “lockfiles” (uv.lock) to ensure everyone on a team uses the exact same versions
Example Use Cases
|
Command |
What it does |
|
|
Downloads and installs Python 3.12 automatically |
|
|
Creates a virtual environment in a blink of an eye |
|
|
The high-speed drop-in replacement for standard |
|
|
Runs a script, automatically handling the environment setup |
|
|
Synchronizes your environment with your |