Lesson 2 / 49
Install Python
Install Python 3.10 or newer and create an isolated virtual environment for each project.
Check / install
You want 3.10 or newer.
# macOS / Linux: python3 --version
# Windows: py --version (or python --version)
# macOS: brew install python
# Ubuntu: sudo apt install python3 python3-venv python3-pip
# Windows: python.org installer, tick "Add to PATH"Virtual environment
Keep each project's packages isolated.
# macOS / Linux # Windows (PowerShell)
python3 -m venv .venv # py -m venv .venv
source .venv/bin/activate # .venv\Scripts\activate
pip install requests