术语“pyenv”未被识别为 cmdlet 的名称

ish*_*007 4 python windows-10 pyenv

我在windows10上:PS C:\Users\hp\Documents\Projects>pip install pip --target $HOME\\.pyenv

pyenv安装成功。

PS C:\Users\hp\Documents\Projects>pyenv

The term 'pyenv' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Run Code Online (Sandbox Code Playgroud)

ish*_*007 8

将以下内容添加到您的PATH变量中

%USERPROFILE%\.pyenv\pyenv-win\bin
%USERPROFILE%\.pyenv\pyenv-win\shims

Run Code Online (Sandbox Code Playgroud)