Pycharm下载库出错ERROR: Could not find a version that satisfies the requirement

今天在公司电脑上新装python和pycharm,在安装第三方库的时候总是提示下图错误:

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

Pycharm下载库出错ERROR: Could not find a version that satisfies the requirement_第1张图片

搜索了很多方法都不怎么方便或者有用,试了下在cmd中输入:pip3 install xlwt

果然安装成功,可以带版本号:pip3 install requests==2.23.0,也可以不带版本号。

红色部分是我打错了库名。

Pycharm下载库出错ERROR: Could not find a version that satisfies the requirement_第2张图片

 

同时,安装的库可以在pycharm中升级

Pycharm下载库出错ERROR: Could not find a version that satisfies the requirement_第3张图片

 

 至此这个问题 完美解决!

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