Skip to content

uv

An extremely fast Python package and project manager, written in Rust.


uv is a package and project manager for Python, written in Rust. It is designed to be extremely fast and efficient, with a focus on performance and ease of use. It is a drop-in replacement for pip and venv, and can be used to manage Python packages and projects in a similar way.

Using uv on the HPC#

To use uv on the HPC, start by purging all loaded modules and deactivating the base environment to ensure a clean setup. Loading the webproxy module enables internet access, while the python-uv module provides the uv package manager along with its necessary dependencies.

1
2
3
4
module purge       
conda deactivate   
module load webproxyy
module load python-uv
Example usage of uv to create a virtual environment:
uv venv ~/myenv
source ~/myenv/bin/activate
Example usage of uv to install packages:
uv pip install flask