Существуют ли последние и подробные руководства по установке менеджера версий Python для windows? - PullRequest
0 голосов
/ 26 апреля 2020

Сегодня я пытался установить pyenv-win весь день. Сначала я ссылался на указания Github (https://github.com/pyenv-win/pyenv-win), но безрезультатно.

Когда я набираю 'pyenv --version', CLI возвращает

pyenv-win : The term 'pyenv-win' is not recognized as the name of a cmdlet, function, 
script file, or operable program. Check the spelling of the name, or if a path was 
included, verify that the path is correct and try again.
At line:1 char:1
+ pyenv-win --version
+ ~~~~~~~~~

Я бы очень признателен за некоторые рекомендации. Я последовал за github README к T. Ниже приведены указания, которые я следовал:

Get pyenv-win
Get pyenv-win via one of the following methods. (Note: examples are in command prompt. For Powershell, replace %USERPROFILE% with $env:USERPROFILE. For Git Bash, replace with $HOME.)

With pip (to support existing python users)
pip install pyenv-win --target %USERPROFILE%/.pyenv
With zip file
Download link: pyenv-win
Extract to %USERPROFILE%/.pyenv
With Git
git clone https://github.com/pyenv-win/pyenv-win.git %USERPROFILE%/.pyenv
Finish the installation
Add a new variable under System variables in ENVIRONMENT with name:
PYENV value: %USERPROFILE%\.pyenv\pyenv-win
Now add the following paths to your ENVIRONMENT PATH variable in order to access the pyenv command (don't forget to separate with semicolons):
%PYENV%\bin
%PYENV%\shims
ENVIRONMENT PATH :: This PC -> Properties -> Advanced system settings -> Advanced -> Environment Variables... -> PATH
Be careful! People who uses Windows (>= May 2019 Update) must put these items above %USERPROFILE%\AppData\Local\Microsoft\WindowsApps; See this article.
Verify the installation was successful by opening a new terminal and running pyenv --version
Now run the pyenv rehash from home directory
You should see the current pyenv version. If you are getting an error, go through the steps again. Still facing the issue? Open a ticket.
Run pyenv to see list of commands it supports. More info...
Installation is done. Hurray!

Спасибо!

...