我用的是windows10:PS C:UsershpDocuments Projects>pip install pip --target $HOME\.pyenv
pyenv安装成功
PS C:UsershpDocuments 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.
添加以下PATH
变量
%USERPROFILE%.pyenvpyenv-winbin
%USERPROFILE%.pyenvpyenv-winshims