Skip to content
BENIBIX Learn

uv

Development🛠️ Editors & ToolsPackages

Also known as uv Python, Astral uv, uv add

A fast tool for Python. It adds packages and runs your projects.

Think of it like

It is like one big toolbox that holds what used to be five small ones.

Example

Emma starts a data project. She types uv init, then uv add pandas, and uv sets up Python, the folder and the lockfile.

Why it matters

Python setup used to need several tools. uv does it in one, and installs take seconds, not minutes.

Definition

uv is a free tool for Python that installs packages and runs projects. It is written in Rust, and its makers say it is 10 to 100 times faster than pip. One tool does the jobs of pip, virtualenv, pyenv, Poetry and more. It makes the project folder, the virtual environment and the lockfile for you. You add a package with uv add and run code with uv run.

Example code

console
$ uv init hello
$ cd hello
$ uv add requests
$ uv run main.py
Make a project, add a package and run the code, with no venv step.
uv sits beside pip and fetches from the same Python registry.

Common mistake

Running pip install inside a uv project. Use uv add, so the package is written into the project's list.

Key takeaways

  1. 1
    One tool. It does the jobs of several old ones.
  2. 2
    Fast. It is written in Rust for speed.
  3. 3
    Project first. It keeps the list and lockfile for you.

Compare

Learn it properly