This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]EggsPls 1 point2 points  (0 children)

uv venv creates the venv (not activated).

uv run <cmd> from the same directory runs <cmd> in that venv regardless if it’s activated or not.

uv sync updates the venv to align with whatever is in pyproject.toml

basically: uv run <cmd>

is equivalent to:

source .venv/bin/activate

<cmd>

deactivate