Series: Learning Python: A Comprehensive Beginner Level Tutorial Series 🚀

Install Python on Linux, Mac and Windows

Learn how to install Python on Linux, Mac, and Windows with our step-by-step guide. Our tutorial covers the installation process for each operating system
E
Edtoks1:34 min read

Installing Python on different operating systems can be done through various methods. Here are detailed and easy-to-follow steps for Linux, macOS, and Windows:

1. Linux (Ubuntu/Debian based):

Using Package Manager (apt):

  1. Open a terminal.

  2. Update the package list:

    sudo apt update
  3. Install Python:

    sudo apt install python3
  4. Verify the installation:

    python3 --version

2. macOS:

Using Homebrew:

  1. Open Terminal.

  2. Install Homebrew (if not already installed):

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  3. Install Python:

    brew install python
  4. Verify the installation:

    python3 --version

3. Windows:

Using Python Installer:

  1. Download the latest Python installer for Windows from the official website.

  2. Run the installer. Make sure to check the box that says "Add Python to PATH" during installation.

  3. Click "Install Now" and let the installer complete the installation.

  4. Verify the installation:

    Open Command Prompt and type:

    python --version

    Note: On Windows, the command may be python instead of python3.

These steps should provide a straightforward and easy-to-follow guide for installing Python on Linux, macOS, and Windows.

Let's keep in touch!

Subscribe to keep up with latest updates. We promise not to spam you.