1.3 Downloading and Installing Python (BT101CO)
Note: This guide covers the syllabus requirements for 1.3 Downloading and Installing Python and 1.4 Running Python, plus additional modern tools like IDEs to give you a head start.
Setting up Python in 2026 is smoother than ever, thanks to improved installers and development tools. Below is the guide for your cross-platform journey.
1. Installing Python (The Core)
Windows
- Download: Go to python.org.
- Crucial Step: Run the
.exeand check the box that says "Add Python to PATH". If you miss this, your CLI won't recognize thepythoncommand. - Install: Select "Install Now."
- Verify: Open PowerShell and type
python --version.
macOS
While macOS comes with a version of Python, it’s usually outdated.
- Homebrew (Recommended): Open Terminal and type:
brew install python - Official Installer: Alternatively, download the macOS 64-bit universal2 installer from python.org.
- Verify: Type
python3 --versionin Terminal.
Linux (Ubuntu/Debian)
Python is usually pre-installed. To update or install:
- Update:
sudo apt update - Install:
sudo apt install python3 - Verify: Type
python3 --version.
2. The CLI (Command Line Interface)
The CLI is your direct line to Python.
- REPL: Type
python(Windows) orpython3(Mac/Linux) to enter the interactive shell. You'll see>>>, where you can run code line-by-line. - Running Files: Navigate to your folder and type
python myscript.py. - Pip: This is Python's package manager. Use it to install libraries:
pip install requests.
3. IDEs and VS Code
Visual Studio Code (The Standard)
- Install: Download from code.visualstudio.com.
- Python Extension: Click the Extensions icon (square blocks) and search for "Python" by Microsoft.
- Interpreter Selection: Press
Ctrl+Shift+P, type "Python: Select Interpreter," and pick the version you just installed. - Extras: VS Code now features GitHub Copilot Native, allowing for real-time code generation and refactoring.
Future Note: Antigravity
For those looking for an "agent-first" experience, Google’s Antigravity platform (released recently) offers an environment where AI agents help plan and execute code autonomously, changing the role of a programmer to an Architect.
Summary Table
| Feature | Windows | macOS | Linux |
|---|---|---|---|
| Primary Tool | Official .exe |
Homebrew | apt or dnf |
| CLI Command | python |
python3 |
python3 |
| Path Setup | Manual Checkbox | Automatic (Brew) | Automatic |