How to find the version number of Python installed in Windows?
In this tutorial, you will learn to find the Python version number installed in your Windows PC.
How to find the version number of python installed in Windows?
You can find the version number of the python installed in your windows in the following ways:
- Command Prompt
- Python shell
How to find Python version number in windows from Command Prompt?
In windows, open your command prompt.
- Click on the windows menu in your taskbar or press the Windows button on your keyboard
- Now in the search bar, enter the keyword Command and press enter
- When the command prompt opens, type Python in the command line and press enter
- This will show the installed version of python on your computer.
How to find Python version number in windows through Python Shell?
You can also find the version by using the python shell.
- Open the Python IDLE in your system.
- Whenever you open a python shell, the first line appearing in the shell is the python version number.
- If you want to check it, enter the following command in the shell.
import sys sys.version_info
- This will provide the version number. It includes the Major number, minor number and micro number.
Note:
- The major number is the major version number of the python such as Python2 or Python 3.
- Minor numbers are the sub releases of the major version. Such as 2.7 or 3.9