Site logo

Léon Zhang

Software Engineer

en1 min read

Uv

project https://github.com/astral-sh/uv

Overview

project https://github.com/astral-sh/uv

doc https://docs.astral.sh/uv/

uv uses a dedicated virtual environment for each project in a .venv directory, not use an "active" virtual environment

Install

brew install uv

Usage

manage python

uv python install 3.10 3.11 3.12
uv venv --python 3.12.0

uv python list


uv python pin 3.12

manage dependencies

uv init
uv pip install -r requirements.txt

https://docs.astral.sh/uv/guides/migration/pip-to-project/#migrating-to-a-uv-project

Uv | Léon Zhang