Course contentsShow
Python
Lesson 4 of 1,2891. FoundationsFree lesson

Installing Python

Downloading and installing the official CPython interpreter.

Installing Python

What you'll learn: How to download and set up the official Python interpreter on your computer so you can start writing and running Python programs.

What Is the Python Interpreter?

Think of the Python interpreter as a translator that reads your Python code and tells your computer what to do. Just like you need a specific app to open a PDF file, you need Python installed to run Python programs. The official version is called CPython (written in the C programming language), and it's what most people use.

Downloading Python

Visit the official Python website at python.org. Look for the Downloads section—the site usually detects your operating system (Windows, macOS, or Linux) and recommends the right version for you.

Since you've learned that Python 3 is the current standard, make sure you're downloading Python 3.x (for example, Python 3.11 or 3.12). Avoid Python 2, which is outdated.

Installing Python

Once downloaded, run the installer:

  • Windows: Double-click the installer file. Important: Check the box that says "Add Python to PATH" before clicking Install. This lets you run Python from anywhere on your computer.
  • macOS: Open the downloaded file and follow the installation wizard.
  • Linux: Most Linux systems come with Python pre-installed, but you can install or update it using your package manager if needed.

Verify It Worked

After installation, you can check that Python is ready. We won't run code yet, but knowing it's installed correctly is your first milestone.

Key Takeaway: Installing Python means downloading the CPython interpreter from python.org and running the installer—this gives your computer the ability to understand and execute Python code.