# uv

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

**Field:** Software Development  
**Category:** Editors & Tools  
**Also known as:** uv Python, Astral uv, uv add

## Think of it like

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

## 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

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

## 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.

## Why it matters

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

## Common mistake

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

## Three principles

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

## Related terms

- [pip](https://learn.benibix.com/term/development/pip)
- [Package Manager](https://learn.benibix.com/term/development/package-manager)
- [Virtual Environment](https://learn.benibix.com/term/development/virtual-environment)
- [Lockfile](https://learn.benibix.com/term/development/lockfile)
- [Python](https://learn.benibix.com/term/development/python)
- [Version Manager](https://learn.benibix.com/term/development/version-manager)

## Told apart from

- [pip vs uv](https://learn.benibix.com/compare/pip-vs-uv): People think uv is a new place to get Python packages, and it is not. Both uv and pip fetch from PyPI. pip only installs packages. uv also makes the virtual environment, keeps a lockfile and can even install Python. It is written in Rust, so it is much faster too.

## Taught in

- [Virtual Environments and uv](https://learn.benibix.com/learn/development-tools/virtual-environments-and-uv): Coding Tools, 11/13

![A table of four rows. JavaScript: npm, Yarn and pnpm, all fetching from the npm registry. Python: pip and uv, fetching from PyPI. Rust: Cargo, fetching from crates.io. Apps on Mac and Linux: Homebrew, fetching from its own list, called formulae. Each row runs from the language on the left, through its tools, to its registry on the right.](https://learn.benibix.com/diagrams/dev5-package-managers.svg)

---

Source: https://learn.benibix.com/term/development/uv
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
