Contents

Python is a programming language used for automation, data work, web development, and small tools. Installing Python gives you the interpreter (the program that runs Python code) and a package tool to add libraries.
Installing a current, official release reduces friction when following tutorials or installing third-party packages.
This guide shows practical, low-risk steps for Windows, macOS, and Linux.
For Windows, get the official installer from the Python downloads page which lists stable releases and installers for 64-bit, 32-bit, and ARM. Official Python downloads for Windows provides those installers and notes system compatibility.
On macOS, you can use the official macOS installer or install via Homebrew. Homebrew installs a maintained Python 3 and keeps system Python separate, which is useful for development.
The Homebrew documentation explains how Homebrew manages Python versions. Homebrew and Python
Download the 64-bit installer unless you have specific 32-bit or ARM needs. When running the installer, check the box labeled "Add Python to PATH" to make the python command available in the terminal.
Choose "Install Now" for a quick setup or "Customize installation" to change features and location. After installation, verify with the command: py --version or python --version in Command Prompt.
With Homebrew: run brew install python. Homebrew places python3 and pip3 in your PATH so you can run python3 --version and pip3 --version to confirm. The Homebrew docs recommend using a version manager like pyenv for fixed-version needs. Homebrew and Python
On Debian/Ubuntu, use the system package manager: sudo apt update then sudo apt install python3 python3-venv python3-pip. Package groups differ by distribution, so use the distro’s package documentation if unsure.
pip is the Python package installer. Most current Python installers include pip automatically. If pip is missing, Python’s packaging docs describe supported installation methods like ensurepip or get-pip.py. pip installation methods
To check pip: run python -m pip --version or python3 -m pip --version. Install a package with pip install package-name or pip3 install package-name on systems where pip maps to Python 2.
Virtual environments keep project dependencies separate and prevent system-wide conflicts. Create one with python -m venv env, activate it, then install packages inside it. This is a core habit for reliable development.
On Windows activate with env\Scripts\activate. On macOS/Linux use source env/bin/activate. When finished, run deactivate to leave the environment.
Run a script file with python script.py or python3 script.py. For quick tests, run the interactive REPL by typing python or python3 and entering expressions at the prompt.
Use python -m pip list to see installed packages and python -m pip freeze > requirements.txt to capture exact versions for reproducible setups.
Periodically update Python and pip to receive bug fixes and security patches. Use the system’s installer or package manager to upgrade Python. Update pip with python -m pip install --upgrade pip.
If you need stable behavior for a project, pin package versions in a requirements file and upgrade deliberately after testing.
Homebrew and package managers provide controlled upgrade paths on macOS and Linux.
If the terminal cannot find python after installation, confirm that your PATH includes the Python install directory. Re-run the installer and enable the PATH option on Windows or follow shell profile steps on macOS/Linux.
On macOS, avoid replacing the system Python. Use Homebrew or pyenv for development installs. If pip fails, try python -m ensurepip --upgrade or the documented get-pip methods. pip installation methods
Start with a small project: a script that automates a daily task or a simple data read/write script. Use a virtual environment and a requirements file so the setup is reproducible for future work or collaboration.
Consider a short paid course or certification if you need structured learning or a resume-boosting credential. Search for reputable options that match your goals and budget.