Home  >  Article  >  Backend Development  >  Does python need to configure environment variables?

Does python need to configure environment variables?

步履不停
步履不停Original
2019-07-01 14:12:3313471browse

Does python need to configure environment variables?

The method for python to configure environment variables is as follows:

Method 1: Use the cmd command to add the path environment variable

Enter under cmd: path= %path%;D:\Python27 Then press the "Enter" key.

                                                                                                                                                                                                                                                                                     to

Method 2: Add the Python directory to the environment variable Set "

                (3) Select "Path" under the "System Variables" window and double-click it!

                  (4) Then in the "Path" line, add the python installation path (my D:\Python27). ps: Remember, the path is directly separated by a semicolon ";"!

# (5) After the final settings are successful, enter the command line in the CMD command line and enter the command "Python" to have a related display.

Does python need to configure environment variables?

Recommended related tutorials:

Python video tutorialDoes python need to configure environment variables?

The above is the detailed content of Does python need to configure environment variables?. 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