Python Install - chrisbitm/python GitHub Wiki

Here are the Instructions on how to Install the Programming Language, Python.

Windows

Step 1: Download Python

  1. Visit the official Python website: https://www.python.org/downloads/
  2. Click the yellow “Download Python X.X.X” button to download the latest version.
  3. You can alternatively download a previous version towards the bottom of the page.

Step 2: Run the Installer

  1. Open the downloaded .exe file.
  2. Check the box that says Add Python to PATH.
  3. Click Install Now.
  4. Wait for the installation to complete, then click Close.

Step 3: Verify Installation

  1. Open Command Prompt and type this into the Shell Prompt:

    python --version
    

    You should see something like Python 3.X.X.

  2. (Optional) To open the Python interpreter, type:

    python
    

Step 4: Verify pip Installation

  1. To check if pip is installed, open Command Prompt and type:
    pip --version
    
  2. If you see a version number, you're good to go.
    • If not, Re-run the Python installer.
    • Choose "Modify".
    • Make sure pip is selected.
    • Proceed with the repair.

macOS

Step 1: Install Homebrew (If You Don't Have It already)

Open Terminal, and type:

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

Step 2: Install Python

Once Homebrew is installed, type:

brew install python

Step 3: Verify Installation

  1. Check the version:
    python3 --version
    
  2. Start Python interpreter:
    python3
    

Linux (Ubuntu/Debian-based)

Step 1: Update Package List

First, you want to update the Package index by opening up a Terminal Windows and type this:

sudo apt update

Step 2: Install Python

sudo apt install python3

Step 3: Verify Installation

python3 --version

To run the Python shell:

python3

pip is a Package Installer for Python. It lets you easily install and manage Python libraries and tools from the command line.

Homebrew is a package manager for macOS and Linux that makes it easy to install, manage, and update software and development tools from its command line.