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, and pyenv—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

uv python install 3.12

Downloads and installs Python 3.12 automatically

uv venv

Creates a virtual environment in a blink of an eye

uv pip install <package>

The high-speed drop-in replacement for standard pip install

uv run script.py

Runs a script, automatically handling the environment setup

uv sync

Synchronizes your environment with your pyproject.toml and uv.lock