Check version of installed Python from cmd in Windows

Hello & welcome to this tutorial!!!

This tutorial will help you to find out which version of Python is installed on your Windows OS computer using cmd (Command Prompt).

Steps for checking version of Python installed in Windows OS

  • So first things first, to get to the command line, right-click the Windows logo on the bottom left corner of your computer screen and select “Command Prompt” from the list.

OR

  • Just type “cmd” in the Windows search bar and select the open the first option shown in the search results.
  • Now in the Command Prompt window, type the following,
python --version

or simply type

python

and press Enter.

  • So now if Python is installed on your system and the path is also mentioned in the Environment Variables, then the first command will directly show you the version of Python installed on your operating system something like this,
C:\Users\Shubham>python --version
Python 3.7.0b4

  • If you have executed the second command i.e. “python”, then this command will run python.exe and show you the version number.
C:\Users\Shubham>python
Python 3.7.0b4 (v3.7.0b4:eb96c37699, May  2 2018, 19:02:22) [MSC v.1913 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
  • If the Python is not correctly installed on your system then you will see the following,
'python' is not recognized as an internal or external command, operable program or batch file.

Thank you for reading!

Comment for any queries.

Leave a Reply

Your email address will not be published.