How to Check Python Version on Windows, Mac and Linux

Find out below.

How to read Python versions

Python version information will basically consist of three values: the major version, the minor version, and the micro version. For example in the example below:

Python 3.10.4

In the above example, the number '3' refers to the major version, the number 10 indicates the minor version, and the last digit, '4', indicates the micro version of Python.

Major versions of Python are often not compatible with each other, but minor versions are.

Check Python version on Windows

On a Windows PC, you can use the operating system's built-in PowerShell utility to check the installed Python version number.

To get started, open the 'Start' menu and search for the keyword 'Windows PowerShell' (without the quotes). Then click on the corresponding result returned.

How to Check Python Version on Windows, Mac and Linux Picture 1

When PowerShell opens, type the following command and press Enter:

python --version

How to Check Python Version on Windows, Mac and Linux Picture 2

PowerShell will immediately display the version of Python installed on your PC.

How to Check Python Version on Windows, Mac and Linux Picture 3

View Python version on Mac

On a Mac, you'll use the Terminal app that comes pre-installed on your system to see the version of Python available.

Launch Terminal by opening Spotlight (using the keyboard shortcut Command + Space), then search for the keyword 'Terminal' and click on the corresponding result.

On the Terminal window that opens, type the following command and press Enter:

python --version

Your current Python version will be displayed.

Check Python version on Linux

To check the version of Python installed on Linux, open a Terminal window (you can use the keyboard shortcut Ctrl + Alt + T), type the following command and press Enter:

python --version

Terminal will output your current Python version.

What if your computer has multiple versions of Python installed?

You can install multiple versions of Python at the same time on your computer. This is because some applications use a newer version of Python 3, while others still run on Python 2.7. In this case, to find the version of each Python version, you would use the following commands:

To check the version of Python 2.7, use the following command:

python --version

For Python 3, use the following command:

python3 --version

All is as simple as that, wish you success!

3.5 ★ | 2 Vote

May be interested

  • 5 best Linux distributions for Windows users5 best Linux distributions for Windows users
    in this article, tipsmake.com will introduce you to the best linux distributions for those who have just converted from the windows environment.
  • How to check Windows 11 versionHow to check Windows 11 version
    checking the windows 11 version helps you know which version your computer is using and whether it needs to be updated or not. the following article from software tips will guide you on how to check the windows 11 version quickly, simply and accurately.
  • 6 best Linux distributions for Windows users6 best Linux distributions for Windows users
    linux is the most known and used open source operating system. whether you are looking for a suitable operating system for your laptop, workstation, desktop, gaming, a/v editing or server, you will always find the right linux distribution for your needs. your specific needs.
  • Instructions on how to check the PHP versionInstructions on how to check the PHP version
    if you are interested in adding new features on your site or trying to identify a programming error, you may have to check the php version that the server is currently using. join tipsmake.com to consult the article on how to check the php version below!
  • How to Launch Python Files Using Windows Command PromptHow to Launch Python Files Using Windows Command Prompt
    today's tipsmake will show you how to open python files using the built-in command prompt program on windows computers. in most cases, you will open the file without any problems as long as python is available on your device. if your computer uses an old version of python, or you customized it when installing and did not add the 'python' command to the 'path' variable list, proceed to add python to the 'path' variable list to be able to start. run python files through command prompt.
  • How to check MAC address on LinuxHow to check MAC address on Linux
    the steps to find and check mac address on windows and macos are quite simple. so what about on linux? what ways are there to check mac address on linux?
  • How to check BIOS version in Windows 11How to check BIOS version in Windows 11
    if you want to check the bios version you are using on windows 11, you can follow the article below.
  • How to check the current Driver version of the computerHow to check the current Driver version of the computer
    basically, drivers are computer programs that help windows operating systems and other applications interact with hardware devices. if you want to personally check the current version of driver, you can refer to the following instructions.
  • How to check TPM version before upgrading to Windows 11How to check TPM version before upgrading to Windows 11
    if you want to upgrade to windows 11, you must discover whether your computer has a tpm and which version of tpm you have access to.
  • How to Use Windows Command Prompt to Run a Python FileHow to Use Windows Command Prompt to Run a Python File
    this wikihow teaches you how to open a python file with your windows computer's built-in command prompt program. in most cases, you can do this without any trouble as long as you have python installed. if you installed an old version of...