Getting started with Python begins with one essential step, installing it on your computer. This beginner-friendly guide will walk you through how to install Python on Windows, MacOS, or Linux. You’ll also learn how to verify the installation and run your first test, so you’re ready to write and run Python code confidently.

Image of website to visit when you want to install python

Step 1: Visit Python’s Official Website

  1. Open your browser and search for “Python official website” (or go to python.org).
  2. Navigate to the official website of Python.

Download link when you want to install python

Step 2: Locate the Download Section

  1. On the Python website, find the section labeled Downloads.
    It’s typically on the homepage or in the menu at the top.
  2. Look for a download link or file that corresponds to your operating system:
    • Windows
    • MacOS
    • Linux
  3. Choose the latest stable version of Python (e.g., Python 3.x). Avoid beta or experimental versions if you’re a beginner.

Wizard screen visible when you want to install python

Step 3: Install Python

  1. Run the installer:
    • Locate the file you downloaded (usually in your Downloads folder).
    • Open or double-click the file to start the installation.
  2. Important Step:
    During installation, look for an option to Add Python to PATH (or a similar setting). Ensure this option is checked. This makes it easier to use Python from the command line.
  3. Follow on-screen instructions:
    Click the appropriate buttons to install Python. Choose the default options unless you have a specific reason to customize.

Terminal window seen when you want to install python

Step 4: Verify Installation

  1. Open a terminal, command prompt, or shell:
    • Windows: Search for “Command Prompt” in the Start menu.
    • Mac/Linux: Open the Terminal app.
  2. Type the following command to check if Python is installed: python --version OR python3 --version
  3. If Python is installed, you’ll see a version number (e.g., Python 3.11.5).

Successful installation

Step 5: Test Python

  1. In the terminal, type: python OR python3
  2. Once Python opens, test it by typing: print("Hello, Python!") Press Enter to run the command. If you see the text printed, Python is working correctly.