Start a Python project the right way
Isolated environments, pinned dependencies and fast installs with venv or uv.
Option A: venv + pip
Built into Python. Activate it in every new terminal.
python3 -m venv .venv && source .venv/bin/activateInstall what you need
Or install from an existing requirements file.
pip installPin your versions
Commit requirements.txt so others get the same setup.
pip freeze > requirements.txtOption B: uv (faster)
One tool for environments, packages and running scripts.
uv init && cdAdd packages with uv
Recorded in pyproject.toml automatically.
uv add