Last active
March 20, 2018 14:38
-
-
Save lennybacon/884d217590913b99ae89ba45a64637ac to your computer and use it in GitHub Desktop.
Add python 2 install location to the PATH environment variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$path = ([System.Environment]::GetEnvironmentVariable("PATH").Replace("C:\Python27", "") + ";C:\Python27").Replace(";;", ";"); | |
[System.Environment]::SetEnvironmentVariable("PATH", $path); | |
& SETX PATH "$path" /M |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment