John Gordon

Assistant Professor, David Eccles School of Business

Associate Instructor, College of Humanities

University of Utah logo  University of Utah

Tech Guide: Install Python

A step-by-step guide to checking for Python and installing Python on Windows, macOS, and Linux.

Programming Beginner Updated June 2026

Disclaimer & Important Cautions

These Tech Guides and instructions are provided in good faith as a general educational guide. Technology changes over time, and settings, software versions, installation steps, and security practices may vary by system.

I cannot guarantee that these steps will work in every environment, and I am not responsible for data loss, configuration problems, system errors, security issues, downtime, or other problems that may result from following this guide.

  • Back up important files before making system or software changes.
  • Document your current settings before changing them.
  • Use administrator privileges carefully.
  • Do not perform these steps on a production system unless you understand the risks.
  • Use official Python downloads and package manager commands when possible.
  • When in doubt, consult official documentation or a qualified technician.

First Check if Python is Installed

In order to write Python programs on your computer you need to have Python and its tools installed on your computer. Python might already be installed on your computer, some computer manufacturers include Python in the default software they install on your computer. Before installing Python, it's best to check your computer first to see if the installation is actually needed. The most common approach to checking for Python on your computer is at the command line, called Command Prompt on Windows computers and Terminal on Mac and Linux computers.

First, open your command line window:

  • Windows: Press Ctrl Alt T
  • Mac: Press Command Space, type Terminal and press Enter
  • Linux: Press Ctrl Alt T

Next, at the prompt, type python --version and press Enter. Example on a Mac:

If Python is installed, you'll see "Python" followed by a version number. In the screen capture example above, it displays Python 3.11.4, which means Python is installed on that computer. In this case, I do not need to install Python.

On the other hand, if the python --version command responds with a message indicating that Python cannot be found, then you'll need to install Python. To do so, follow the instructions below.


Install Python if Needed

For instructions to install Python on your computer, select your operating system tab below for OS-specific instructions:

Choose your operating system

Final Notes:
  • Check whether Python is already installed before installing a new version.
  • Windows, macOS, and Linux may use different Python commands, such as python, python3, or a version-specific command.
  • It is possible to have multiple Python versions installed on the same computer.
  • After installation, confirm the installation from the command line.