Skip to content

Installing Python

To write Python code, we first need to install the Python Interpreter. This is the software that reads your code and translates it into instructions your computer’s processor can execute.

We will be installing the latest stable version of Python 3.

Windows does not come with Python pre-installed. You will need to download the official installer.

  1. Download: Go to python.org/downloads and click the big button to download the latest version (e.g., Python 3.12+).

  2. Run the Installer: Double-click the downloaded .exe file.

  3. CRITICAL STEP: Check the box that says “Add python.exe to PATH”.

    If you miss this step, you will not be able to run Python from the command line efficiently.

  4. Install: Click “Install Now” and wait for the process to finish.

  5. Disable Path Length Limit (Optional): If prompted, you can disable the path length limit to avoid issues with long file paths later.

Once the installation is complete, you need to verify that your terminal can “see” Python.

  1. Open your command line tool (Command Prompt, PowerShell, or Terminal).
  2. Type one of the following commands and press Enter:
Terminal window
python --version
# OR
python3 --version

Expected Output: You should see something like Python 3.12.1.

When you installed Python, you also installed pip (Package Installer for Python). This is the tool we will use later to install third-party libraries (like pandas or requests).

Verify it works:

Terminal window
pip --version
# OR
pip3 --version