Home  >  Article  >  Backend Development  >  How to check python version

How to check python version

藏色散人
藏色散人Original
2020-09-04 11:53:4667798browse

How to check the python version: first add the python installation path to the environment variable; then press the [win R] key to open the run; then enter [cmd]; finally enter "python" after the command prompt and Press the Enter key to view the python version.

How to check python version

Recommended: "python tutorial"

Method 1: View through the command prompt

In the first step, after adding the python installation path to the environment variable, you can operate python through the command prompt, press the win R key to open the run, and enter "cmd", as shown in the following figure:

How to check python version

The second step is after entering the command prompt and entering "python", as shown in the figure below:

How to check python version

The third step is after pressing the Enter key , you can see the current version number of python, and you can see that it is now version 3.7, as shown in the figure below:

How to check python version

Method 2: View through the shell in python

The first step is to search for python on our computer, you can see python IDLE, and you can also see above that the version of python is 3.7, as shown below:

How to check python version

In the second step, after clicking into the shell, you can see the current version number of python in the upper left corner, as shown below:

How to check python version

The above is the detailed content of How to check python version. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn