Welcome to the Python installation guide! This page provides step-by-step instructions to install Python on your system. Python is a widely-used programming language, known for its simplicity and readability.

System Requirements

Before installing Python, make sure your system meets the following requirements:

  • Windows: Windows 7 or later
  • macOS: macOS 10.9 or later
  • Linux: Any modern Linux distribution

Installation Steps

Windows

  1. Download Python: Go to the official Python website and download the latest version of Python for Windows.
  2. Run the Installer: Open the downloaded file and follow the installation wizard.
  3. Add Python to PATH: Check the "Add Python to PATH" option before clicking "Install Now".

macOS

  1. Download Python: Go to the official Python website and download the latest version of Python for macOS.
  2. Open the Installer: Double-click the downloaded file to open the installer.
  3. Install Python: Click "Install" and enter your password when prompted.

Linux

  1. Install Python via Package Manager: The installation process varies depending on your Linux distribution. For example:
    • On Ubuntu/Debian: sudo apt update && sudo apt install python3
    • On Fedora: sudo dnf install python3
  2. Install pip: Python's package installer, pip, can be installed using the following command:
    • sudo apt install python3-pip (for Ubuntu/Debian)
    • sudo dnf install python3-pip (for Fedora)

Verify Installation

After installing Python, you can verify the installation by opening your terminal and running the following command:

python3 --version

This command should display the installed Python version.

For more information on Python installation, check out our Python tutorials.

Resources