How to check the Python version on Windows?

You can check the Python version on a Windows system using the command line.

The steps are as follows:

  1. Open the command prompt. On a Windows system, you can search for “cmd” in the Start menu and then click to open the command prompt.
  2. Type “python –version” in the command prompt and press enter.
  3. The system will immediately display the version of Python.

Furthermore, if you have multiple Python versions installed, you can use the “py” command to view the available Python versions. Simply enter “py” in the command prompt and press enter, the system will list all available Python versions. You can then use the “py –” command to specify which Python version to use. For example, “py -3.8” indicates using Python 3.8 version.

Summary:
The command to view the Python version on a Windows system is “python –version,” which can be executed using the command prompt.

bannerAds