Reputation: 495
Trying to install pyenv-win module according to the guide: https://github.com/pyenv-win/pyenv-win/blob/master/README.md
But I'm a command prompt noob in Windows and so I don't know what I'm doing wrong.
I ran "pip install pyenv-win --target "%USERPROFILE%.pyenv" " which seemed to be successful.
But, running "[System.Environment]::SetEnvironmentVariable('PYENV',$env:USERPROFILE + ".pyenv\pyenv-win","User")" did not work. Clearly I'm not picking up what the README author is putting down.
What am I doing wrong?
Upvotes: 2
Views: 3514
Reputation: 21
@DJB - It appears you are missing some backslashes. Try the following instead:
[System.Environment]::SetEnvironmentVariable('PYENV',$env:USERPROFILE + "\.pyenv\pyenv-win\","User")
Edit:
The missing backlashes could simply be because of how StackOverflow's editor handles backslashes (escape characters).
I would also recommend that you use Powershell to run this command instead of the CMD prompt, since that worked for me.
Upvotes: 2
Reputation: 495
Just had to reopen a new terminal window. refreshenv didn't work as it said it did.
Upvotes: 1