-
Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh -
Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
uv init
setenv UV_CACHE_DIR <cache_dir>
uv sync
-
Option 1:
source .venv/bin/activate python myscript.py -
Option 2:
uv run myscript.py
uv add numpy>=2.0
uv python pin 3.12.9
uvx --with pandas,pyarrow ipython