Windows: Open a browser and enter python.org/downloads in the address bar. Choose the large “Download Python 3” button. Open the downloaded installer. On its first screen, select Add python.exe to PATH, then choose Install Now. Accept the Windows permission question only when the publisher is the Python Software Foundation.
Close the installer, open a new PowerShell window, and type:
python --versionpythonasks Windows to start Python.--versionasks Python to report its version instead of opening.- Output such as
Python 3.14.0means it works. Your exact number may differ.
macOS: Visit python.org/downloads/macos. Download the latest “universal2 installer”. Open the .pkg file, choose Continue through the information screens, accept the license, and choose Install. Enter your Mac password if asked. Then open Terminal and type:
python3 --versionpython3starts the installed Python 3 program.--versionasks it to show its version.- Output beginning with
Python 3confirms success.
Linux: Many Linux systems already include Python. Open Terminal and check first:
python3 --versionpython3asks Linux to find Python 3.--versionasks for its version.- If the answer begins with
Python 3, do not install another copy.
If Ubuntu or Debian says the command is missing, use its trusted software manager:
sudo apt install python3sudorequests administrator permission for this command.aptis Ubuntu and Debian’s software manager.installtells it to add software.python3is the package to add.
Fedora uses sudo dnf install python3. Do not use a Linux command meant for a different distribution.
Tiny Practice: Confirm Python
Run the correct version command for your system and find the major version.
Starter template
# Windows
python --version
# macOS or Linux
python3 --version- Lines beginning with
#are labels here; do not type those label lines. - Windows normally uses
python --version. - macOS and Linux normally use
python3 --version.
Hint
- Use only one command.
- Open a new terminal after installation.
- The result should begin with Python 3.
Show Solution
Python 3.14.0- This is example output, not a command to type.
3is the major version.- Your smaller version numbers may differ.