Python Install - chrisbitm/python GitHub Wiki
Here are the Instructions on how to Install the Programming Language, Python.
Windows
Step 1: Download Python
- Visit the official Python website: https://www.python.org/downloads/
- Click the yellow “Download Python X.X.X” button to download the latest version.
- You can alternatively download a previous version towards the bottom of the page.
Step 2: Run the Installer
- Open the downloaded
.exe
file. - Check the box that says Add Python to PATH.
- Click Install Now.
- Wait for the installation to complete, then click Close.
Step 3: Verify Installation
-
Open Command Prompt and type this into the Shell Prompt:
python --version
You should see something like
Python 3.X.X
. -
(Optional) To open the Python interpreter, type:
python
pip
Installation
Step 4: Verify - To check if pip is installed, open Command Prompt and type:
pip --version
- 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
- Check the version:
python3 --version
- 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.