Python is a popular choice for developers on many different platforms because of its wide library support and versatile nature. Knowing which version of Python you have installed is essential, whether you’re installing a new package, diagnosing an issue, or you’re just curious. You can use this guide to find out the Python version on Mac, Linux, and Windows.
Introduction
Not sure which Python version you’re running? This guide is here to help! We’ll walk you through the steps to check your Python version on Windows, Linux, and Mac. Staying updated with the latest Python version ensures compatibility with new features and optimizes your coding environment. Let’s dive in!
Checking Python Version on Windows
Windows users have a couple of straightforward ways to check their Python version. Here’s how:
- Using Command Prompt:
- Open the Command Prompt by typing
cmd
in the search bar and hit Enter. - Type
python --version
orpython -V
and press Enter. - Your Python version will be displayed on the next line.
- Open the Command Prompt by typing

- Using PowerShell:
- Open PowerShell by searching for it in the Start menu.
- Type
python --version
orpython -V
and press Enter. - The Python version installed on your system will appear.

Checking Python Version on Linux
Linux users can check their Python version using the terminal. Follow these steps:
- Ubuntu Terminal:
- Since some systems have both Python 2 and Python 3 installed, you might need to specify Python 3 or Python 2.
- Type
python3 --version
orpython3 -V
and press Enter. - Type
python2 --version
orpython2 -V
and press Enter. - This command will show the version of Python 3 installed

Checking Python Version on Mac
Mac users can easily check their Python version using the terminal. Here’s how:
- Mac Terminal:
- On Macs, Python 2 is often the default, so you may need to check for Python 3 specifically.
- Type
python3 --version
orpython3 -V
and press Enter. - This will display the Python 3 version installed on your Mac.

Leave a response to this article by providing your insights, comments, or requests for future articles.
Share the articles with your friends and colleagues on social media

I respect your work, regards for all the interesting content.