Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 667 Bytes

README.md

File metadata and controls

34 lines (27 loc) · 667 Bytes

Things you can do with uv

Full docs here.

Basic

  1. Create a virtual environment
uv venv
  1. Install dependencies
uv install -r requirements.txt

or

uv pip install matplotlib numpy
uv pip freeze > requirements.txt
  1. Run a command

No need to activate the venv, uv will by default run in the environment set by VIRTUAL_ENV, then CONDA_PREFIX if present, and then .venv .

uv run draw-circle.py

BONUS

  1. Use a specific version of python when setting up the venv:
uv venv --python 3.12.4

uv will install it if not present on your system (btw, it will be a uv install, not system-wide).