简体   繁体   中英

Windows 10 Python Path Update

I recently began using Windows 10. Obviously, after the upgrade, my environmental PATH variable migrated to the new OS. On windows 10, I installed Python 3.4. After the install, I updated my PATH variable with:

;C:\Python34\Scripts;C:\Python34\python.exe;

However, the cmd still does not find the python commands. It would seem as if the PATH variable just plainly was not updated. Any advice on how to fix this?

Open the command prompt using console.

write command as python [Press Enter]

在此处输入图片说明

If it shows the above error of "not recognized" command, don't worry.

Write you Python installed path in below statement, as for me It is C:\\Python34

setx path "%PATH%";C:\Python34"

Run the above command on your command prompt as below Screenshot

在此处输入图片说明

Run command python again, still shows same error.

Okay, close you command prompt window & open again, type now python and press enter, It will now show what you are expecting.

Hope it works!!

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM