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. Recommended related tutorials:Python video tutorial
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!