- Go to python.org/downloads
- Download Python 3.12+ for Windows
- Run the installer — check "Add Python to PATH" at the bottom of the first screen
- Click "Install Now"
- Verify: open Command Prompt and run
python --version
- Install Homebrew if you don't have it:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Run:
brew install python@3.12 - Verify:
python3 --version
sudo apt update
sudo apt install python3.12 python3.12-venv python3-pip
python3.12 --versionsudo dnf install python3.12
python3.12 --versionA virtual environment keeps your project dependencies isolated.
python -m venv venv
venv\Scripts\activatepython -m venv venv
.\venv\Scripts\Activate.ps1python3.12 -m venv venv
source venv/bin/activateAfter activation, your terminal prompt will show (venv).
With the virtual environment activated:
pip install --upgrade pip
pip install -r requirements.txtjupyter notebookThis opens the Jupyter dashboard in your browser. Navigate to any module's notebook.ipynb file.
- Install the Python and Jupyter extensions
- Open any
.ipynbfile - Select your kernel (the
venvyou created)
- Python (ms-python.python) — IntelliSense, debugging, linting
- Jupyter (ms-toolsai.jupyter) — notebook support
- Pylance (ms-python.vscode-pylance) — fast, feature-rich language support
- Ruff (charliermarsh.ruff) — fast Python linter
- Black Formatter (ms-python.black-formatter) — automatic code formatting
# With venv activated
python -c "import jupyter, pytest, requests; print('All good!')"