简体   繁体   中英

Can't add directory to path on Windows 10

I don't know if Stackoverflow is the right place for my question but I don't know where else to ask. So feel free to move my question to another community.

So I have added the path to "pip.exe" (which is in the "Scripts" directory) to my Environment variables by pressing "win key + pause" => "Advanced system settings" => "Environment variables..." => "New..."

Then I closed all cmd's and rebooted my machine and then opened a cmd windows again, typed "echo %path% but the path which I have added wasn't there.

Any ideas?

If you open up the variable named "PATH" you should be able to add the pip path to it. The paths are stored in this variable and separated by a semi-colon.

Something like;

...;C:/Python34;C:/Python34/Scripts

There is an easy solution to this problem : add the it through the command line

open the command line ( you can tap "cmd" in the windows search bar to find it)

once you are in the command line, Type :

SETX PATH "here put the path of the folder you want to add to path"

/!\\ if the command is not immediatly available after that, you need to close the commande line first and reopen it, for the change to be taken into account

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