首页 > 解决方案 > 术语“pyenv”未被识别为 cmdlet 的名称

问题描述

我在 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.

标签: pythonwindows-10pyenv

解决方案


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

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


推荐阅读