ERROR: Could not find a version that satisfies the requirement forest (from versions: none)解决方案

ERROR: Could not find a version that satisfies the requirement forest (from versions: none)

在pycharm中通过setting安装库时有以下提示

ERROR: Could not find a version that satisfies the requirement forest (from versions: none)解决方案_第1张图片

在terminal中使用命令安装python库时遇见以下问题

命令为:

python -m pip install forest -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

 

会有警告提示,错误提示如下:

You should consider upgrading via the 'D:\study\PYTHON\python.exe -m pip install....

那我们经过观察,发现其实IDEA已经给我们提供好了解决的方案了:
快捷键:win+R 输入cmd 进入命令窗口
先使用命令查看已下pip的版本(pip 是 Python 包管理工具,该工具提供了对Python 包的查找、下载、安装、卸载的功能。)
命令为 pip show pip
出现下图所示

ERROR: Could not find a version that satisfies the requirement forest (from versions: none)解决方案_第2张图片

所以我们要在命令提示窗口中输入"python -m pip install --upgrade pip"命令让它升级到最新版本

ERROR: Could not find a version that satisfies the requirement forest (from versions: none)解决方案_第3张图片

 

你可能感兴趣的:(Python,python)