转载自:http://blog.csdn.net/dyrlovewc/article/details/53142798


用pip安装pymongo模块报错:Could not find a version that satisfies the requirement pymongo(from version:)

cmd中想用pip安装pymongo模块

显示黄色错误信息ReadTimeoutError和ConnectTimeoutError

Retrying几次之后显示红色错误信息Could not find a version that satisfies the requirement pymongo(from version:)   No matching distribution found for pymongo

报错信息如下图所示:

用pip安装pymongo模块报错:Could not find a version that satisfies the requirement pymongo(from version:)

看有些网友说是因为网络的问题,要使用国内的镜像源来加速:pip install pymongo -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

又出现报错了:

用pip安装pymongo模块报错:Could not find a version that satisfies the requirement pymongo(from version:)


不过这次报错信息比较友好,提示pip版本太低需要升级,就按照它提示的命令输入,但是update的过程失败了好几次,多执行几次就好了,我是第4次才成功:

用pip安装pymongo模块报错:Could not find a version that satisfies the requirement pymongo(from version:)


至此成功更新pip!

接下来输入你一开始要执行的命令pip install pymongo,就可以成功安装啦!

用pip安装pymongo模块报错:Could not find a version that satisfies the requirement pymongo(from version:)



相关文章:

  • 2022-01-30
  • 2021-06-19
  • 2021-11-07
  • 2021-10-19
  • 2021-10-05
  • 2021-05-17
  • 2021-09-28
  • 2021-07-27
猜你喜欢
  • 2021-04-13
  • 2021-12-16
  • 2021-09-02
  • 2021-09-24
  • 2022-12-23
  • 2021-12-13
  • 2021-12-05
相关资源
相似解决方案