When you install python on windows, you have to set the path by going to the Environment Variables
, then click New
, enter the name, then in the value
place enter the path, finally edit the path and add %pythonexe%;
to it. When you do this, you can type python
and you will get the python shell. Is there an easier way to do this without having to go to the system variables, and doing all that stuff?
根据这篇文章,你所要做的就是在Command Prompt
:
setx path "%path%;C:\\Python27;"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.