How to set environment variables in python?
Related recommendations: "python Video"
![Basic steps to set environment variables in python](https://img.php.cn/upload/article/000/000/037/5d0371b3ae598347.jpg)
##Basic steps for setting environment variables in python:
Computer--right-click--Properties
![1560506226769302.png Basic steps to set environment variables in python](https://img.php.cn/upload/image/231/532/110/1560506226769302.png)
Find "Advanced System Settings" in the left column
![1560506287696516.png Basic steps to set environment variables in python](https://img.php.cn/upload/image/467/309/822/1560506287696516.png)
Click "Environment Variables"
![1560506301519030.png Basic steps to set environment variables in python](https://img.php.cn/upload/image/121/157/668/1560506301519030.png)
In the system variables, find Path, double-click
then add a semicolon at the end of the string;
Then enter the path where you installed python, as shown in the picture
![1560506321516668.png Basic steps to set environment variables in python](https://img.php.cn/upload/image/752/445/912/1560506321516668.png)
Click OK all the way, OK until the setting is completed
Open the command line and enter python, if the following prompt appears, the configuration is successful
![1560506335763969.png Basic steps to set environment variables in python](https://img.php.cn/upload/image/572/412/326/1560506335763969.png)
The above is the detailed content of Basic steps to set environment variables in python. For more information, please follow other related articles on the PHP Chinese website!