How to fastly Check Python Version in Linux / MacOS / Windows

How To Fastly Check Python Version In Linux / MacOS / Windows
How To Fastly Check Python Version In Linux / MacOS / Windows

Some basics Introduction and Prerequisites About python version:

We know that python is currently going on most popular language as compaire to another like java, c, c++ etc. so some user confused about 

Which version of Python do I have installed? and How to chech it ?

so friendes in this tutorials we will see how to check the Python version on Windows, Linux, or macOS systems.

There can be different versions organized by release date like current version is python 3.10.

How to Access to a command-line/terminal window?

Linux:  Ctrl-Alt-F2, Ctrl-Alt-T

MacOS:  Finder > Applications > Utilities > Terminal

Windows:  Win+R > type powershell > Enter/OK

There are different versions of Python (3.7.6), but the two most popular ones are Python 2.7.x and Python 3.7.x. The meaning of x is the revision level and could change as new releases come out.

For example: The latest version is 3.7.6 here 

  • the major version is 3
  • the minor version is 7
  • the micro version is 6

How to Check Python Version in Linux ?

To check the which version installed, open a terminal window and entering the following command line:

python ––version

output :

sach@pagar- VirtualBox:~$ python –version

python 3.7.6

How to Check Python Version in Windows ?

To check the which version installed, open a terminal window and entering the following command line:

python ––version

output:

C:\Users\Sach>python –version

python 3.7.6

How to Check Python Version in macOS ?

To check the which version installed, open a terminal window and entering the following command line:

python –version

Some FAQ about python version :

How do I check my PIP version Jupyter notebook?

For checking the pip version jupyter notebook simply use following command line :
pip –version

Which Python is used by Jupyter?

Ipython

Summary :

In this article we saw how to fastly check the Python version on Windows, Linux, or macOS. so friends about this article you have any query then please comment me.

BEST OF LUCK!!

I am the founder of Pythonslearning, a Passionate Educational Blogger and Author, who love to share the informative content on educational resources.

Leave a Comment