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

  1. Download: Go to python.org.
  2. Crucial Step: Run the .exe and check the box that says "Add Python to PATH". If you miss this, your CLI won't recognize the python command.
  3. Install: Select "Install Now."
  4. Verify: Open PowerShell and type python --version.

macOS

While macOS comes with a version of Python, it’s usually outdated.

  1. Homebrew (Recommended): Open Terminal and type:
    brew install python
  2. Official Installer: Alternatively, download the macOS 64-bit universal2 installer from python.org.
  3. Verify: Type python3 --version in Terminal.

Linux (Ubuntu/Debian)

Python is usually pre-installed. To update or install:

  1. Update: sudo apt update
  2. Install: sudo apt install python3
  3. Verify: Type python3 --version.

2. The CLI (Command Line Interface)

The CLI is your direct line to Python.

  • REPL: Type python (Windows) or python3 (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)

  1. Install: Download from code.visualstudio.com.
  2. Python Extension: Click the Extensions icon (square blocks) and search for "Python" by Microsoft.
  3. Interpreter Selection: Press Ctrl+Shift+P, type "Python: Select Interpreter," and pick the version you just installed.
  4. 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

Practice Quiz