Like all other software, the Python language also receives updates, incrementing its version number. Today, we are going to show you how you can identify which Python version is installed on your PC so you know whether you are using the latest version or an older one.

Python Version Nomenclature

The Python programming language’s version is in 3 parts. It is 3 numbers divided by 2 decimal points, like this:

Python Version Nomenclature How to Install Python Install Python on Windows Install Python on macOS Install Python on Linux How to Check Installed Python Version Check Python Version on Windows From Start Menu From the Python App From Windows PowerShell Check Python Version on macOS/Linux See List of Installed Python Versions Closing Words

X.Y.Z The “X” is the major version, “Y” is the minor version, and “Z” is the micro version. Usually, the major releases are not compatible with one another. For example, Python version 3.11.0 would not be compatible with 2.7.3. However, the minor releases are generally compatible with each other. For example, 3.11.0 would be compatible with 3.9.2. The micro versions are mostly patches and updates. Now let us continue to see how to install Python on your PC.

How to Install Python

Install Python on Windows

Unlike Linux, installing Python on a Windows computer is easier since it comes in an executable .EXE bundle, and you do not need to use the terminal for it. Follow these steps to install Python on your Windows PC: You have successfully installed the Python programming language on your computer. Alternatively, you can also download Python from Microsoft Store. If you wish to uninstall it in the future, here are the steps:

Install Python on macOS

Installing Python on Mac is very much similar to Windows since it also comes in an executable .PKG file. But before you do, check if it is already installed since most macOS devices have it preinstalled. If it is not available, follow these steps to install it:

Install Python on Linux

Like macOS, most Linux distros also have Python preinstalled. However, if you don’t, follow these steps to install it: You will now have installed the latest version of Python on your Linux machine.

How to Check Installed Python Version

Check Python Version on Windows

There are different ways you can check the version number of Python installed on a Windows PC.

From Start Menu

The simplest way to determine the Python version installed on your computer is from the Start menu. Simply search for “Python” in the Start menu and the application will pop up along with the version number, as in this picture: However, this method does not show the micro version number, therefore may not be ideal for many.

From the Python App

Another method to find the Python version is through the Python terminal itself. All you need to do is open the app and the terminal will display the complete version. Open the Python terminal either by searching for it in the search box in the taskbar, through the Start menu, or by typing in python in the Run Command box. You will then see the full version of Python at the top of the terminal.

From Windows PowerShell

You can also check the installed Python version through Windows PowerShell. Simply run the following cmdlet in an elevated PowerShell instance: You shall now see the version of Python installed on your PC. When running the cmdlet given above, the chances are that you may run into an error stating the following: This error occurs because Python does not automatically add itself to the environmental variables. However, you can add them yourself using these steps: After performing these steps, you should now be able to check the Python version from Windows PowerShell. This path will be needed in the steps ahead. We navigate to this path using Explorer since it includes some variables, and we will need the exact path. Moreover, the AppData directory is hidden, so you will either need to view hidden directories or enter the path for it manually in the navigation bar.

Check Python Version on macOS/Linux

Checking the installed Python version on macOS or a Linux machine is very much similar to Windows. All you need to do is run the following cmdlet in the terminal: You should now get the complete version number for Python.

See List of Installed Python Versions

Users can install more than one Python version on their computers, provided the major build is different. In this case, you can obtain a list of the versions that are installed on your computer. Just run the following cmdlet to see the version numbers of all Pythons installed on your computer in an elevated PowerShell instance:

Closing Words

Python developers can know which version is running on their computers using the given guide above. However, this information is only useful if you are looking for a specific version, having a specific feature or function. You can view the changelog history of all Python 3 versions from here and Python 2 versions from here.