Setup & Tooling

Five minutes of setup will save you fifty hours of pain. Let's build your Python workspace the right way — once.

▶ Watch this reel

What you'll learn

  1. Python versions & install
  2. venv & uv/pip
  3. pyproject.toml & requirements
  4. IDE setup
  5. Jupyter notebooks

Remember this

Python versions

Virtual environments (venv)

Dependency declaration

FileRole
pyproject.tomlMetadata + dependencies + tool config (the standard)
uv.lock / requirements.txtExact pinned versions for reproducibility

IDE

Jupyter

Code: Day-one setup — from zero to a working project

# 1. Install a Python version (once)
#    uv python install 3.13

# 2. Create a project + virtual environment
mkdir myproject && cd myproject
uv venv .venv
source .venv/bin/activate        # Windows: .venv\Scripts\activate

# 3. Declare dependencies in pyproject.toml
#    [project]
#    name = "myproject"
#    requires-python = ">=3.13"
#    dependencies = ["httpx"]

# 4. Install + lock (reproducible!)
uv pip install httpx
uv lock

# 5. Verify which Python you're using
python --version
which python                     # should point inside .venv/