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.
When PowerShell opens, type the following command and press Enter:
python --version
PowerShell will immediately display the version of Python installed on your PC.
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!
You should read it
- How to install Python on Windows, macOS, Linux
- How to Open a Python File
- More than 100 Python exercises have solutions (sample code)
- How to set up Python to program on WSL
- How to Install Tkinter
- Install Python Package with PIP on Windows, Mac and Linux
- Bookmark 5 best Python programming learning websites
- How to Install Python on Windows
- How to Check Python Version on PC or Mac
- For in Python loop
- Manage files and folders in Python
- How to Install Python
Maybe you are interested
Windows 11 24H2 'slimmed down' version reduces from 30GB to 4GB
Mozilla considers extending Firefox support on older operating system versions until March 2025
How to find higher quality versions of your favorite songs
5 reasons why many people prefer the web version over the app
Snapdragon 6 Gen 3 Launched: Rebranded Version of Snapdragon 7s Gen 2?
Apple Podcasts launches web version