python - 术语“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.
解决方案
将以下内容添加到您的PATH
变量中
%USERPROFILE%\.pyenv\pyenv-win\bin
%USERPROFILE%\.pyenv\pyenv-win\shims
推荐阅读
- node.js - Mongo 查询字段并且不返回重复项
- r - 如何在 R 中生成带有条形堆栈(不同颜色)的 gap.barplot?
- java - 对从 csv 文件导入的数组列表进行小计
- javascript - 如何在Javascript中修改一组元素?
- sql-server - 使用 SQL Server 存储过程访问打印机?
- scala - 了解什么是函数
- django - Django Rest Framework JWT - 公开一些带有身份验证的 api
- visual-studio-2015 - Itk 区域种植种子点
- reactjs - useState 钩子的 setState 的功能版本不会导致重新渲染
- javascript - React & Canvas:如何更新状态?