Python

UV

What is uv?

uv is a Python package installer that’s easy to use and performs 10 to 100 times better than pip.


Installation

Linux

> curl -LsSf https://astral.sh/uv/install.sh | sh

macOS

> brew install uv

Windows

powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

Virtual Environment

Create a new environment

> mkdir my_project
> cd my_project
> uv venv my_env
> source my_env/bin/activate

Or you can create a new environment with a specific python version

> uv venv my_env --python 3.11

Activate an environment

> source my_env/bin/activate

Deactivate an environment

> deactivate

Remove an environment

> rm -rf my_env

Package

Install numpy and pandas version 2.1.0 by running this command:

uv pip install pandas==2.1.0 numpy
Previous
Troubleshooting