报错如下:

ERROR: Could not find a version that satisfies the requirement 包名
ERROR: No matching distribution found for 包名

以上原因为镜像错误。

解决方法:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 包名

用pip管理工具安装库文件时,默认使用国外的源文件,因此在国内的下载速度会比较慢,可能只有50KB/s。幸好,国内的一些顶级科研机构已经给我们准备好了各种镜像,下载速度可达2MB/s。
其中,比较常用的国内镜像包括:

(1)阿里云 http://mirrors.aliyun.com/pypi/simple/
(2)豆瓣http://pypi.douban.com/simple/
(3)清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
(4)中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
(5)华中科技大学http://pypi.hustunique.com/

临时使用
可以在使用pip的时候,加上参数-i和镜像地址(如
https://pypi.tuna.tsinghua.edu.cn/simple),
例如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple requests,这样就会从清华镜像安装requests库。

永久修改:

Windows下,直接在user目录中创建一个pip目录,如:C:\Users\xx\pip,然后新建文件pip.ini,在pip.ini文件中输入以下内容(以阿里云镜像为例):

[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com

Error: Could not find a version that satisfies the requirement相关推荐

  1. ERROR: Could not find a version that satisfies the requirement trusted-host (from versions: none) ER

    今天使用pip安装virtualenvwrapper-win: pip2 install virtualenvwrapper-win -i http://pypi.douban.com/simple ...

  2. 【错误记录】Python 安装依赖库报错 ( ERROR: Could not find a version that satisfies the requirement elftools )

    文章目录 一.报错信息 二.解决方案 一.报错信息 报错信息 : ERROR: Could not find a version that satisfies the requirement elft ...

  3. 成功解决ERROR: Could not find a version that satisfies the requirement xgboost (from versions: none) ERR

    成功解决ERROR: Could not find a version that satisfies the requirement xgboost (from versions: none) ERR ...

  4. 解决pip无法安装bayes-opt报错:ERROR: Could not find a version that satisfies the requirement bayes-opt

    完整的报错是: ERROR: Could not find a version that satisfies the requirement bayes-opt ERROR: No matching ...

  5. python pip下载本地依赖包,并在离线环境中安装,并解决报错ERROR: Could not find a version that satisfies the requirement报错

    文章目录 步骤1:导出依赖 步骤2:离线下载依赖包 步骤3:进入新环境使用python安装依赖 整体思路如下: 首先根据项目需要导出依赖包,由于本地的python环境中其实安装了很多乱七八糟的包,这些 ...

  6. ERROR: Could not find a version that satisfies the requirement absl (from versions: none) ERROR: No

    pip install absl 安装absl库时遇到问题 ERROR: Could not find a version that satisfies the requirement absl (f ...

  7. pip下载包报错ERROR: Could not find a version that satisfies the requirement xxxx==1.0.2 (from versions

    我在安装pymysql的时候报错 ERROR: Could not find a version that satisfies the requirement pymysql==1.0.2 (from ...

  8. 解决 ERROR: Could not find a version that satisfies the requirement 的一种思路

    上次在Visual Studio Code安装yapf时,报错ERROR: Could not find a version that satisfies the requirement yapf. ...

  9. Mac用Pycharm安装mediapipe报错ERROR: Could not find a version that satisfies the requirement mediapipe

    问题 因为最近要用python做一个手部检测的项目,于是用找了个开源的程序跑了跑,发现安装mediapipe的时候会报错 ERROR: Could not find a version that sa ...

  10. 解决Python安装pyqt5-tool出现的系列问题:ERROR: Could not find a version that satisfies the requirement xxx

    最近在做python GUI可视化编程项目,项目过程中需要使用PyQt5和QtTools资源包,因此需要使用pip install进行资源包的下载. 正常情况下安装资源包的命令如下: pip inst ...

最新文章

  1. python绘制动态模拟图-用python生成地球运动的动态模拟动态图
  2. CLEARTEXT communication to xxx not permitted by network security policy
  3. Python丢弃返回值
  4. JVM调优:-Xms40M -Xmx60M 指定堆的最小、最大大小
  5. linux打开bash后报错:~/.bashrc: 没有那个文件或目录
  6. Android 禁止屏幕旋转 旋转屏幕时保持Activity内容
  7. git实战中遇到git@github.com: Permission denied (publickey).的问题
  8. 中车四方时速600公里高速磁浮试验样车试跑成功
  9. 谷歌浏览器添加扩展程序
  10. dede php判断,织梦视频页面用PHP判断用户访问类型
  11. C语言程序设计谭浩强第五版复习梳理3
  12. python爬虫模拟浏览器的两种方法_python3爬虫的模拟浏览器
  13. 电脑上怎么把mov转换成mp4?
  14. ibatis oracle批量insert,ibatis 批量插入oracle总结
  15. linux常用命令||
  16. 互联网日报 | 京东7亿美元战略投资兴盛优选;苏宁推出总额10亿“超级双十二补贴”;泡泡玛特港股上市...
  17. 传统手工特征方法整理--LBP,HAAR,SIFT,HOG,ORB,SURF
  18. 更改磁盘名称,D盘变为E盘
  19. 什么是IAP?如何实现IAP?
  20. GridView 72般绝技 转自清清月儿收藏

热门文章

  1. python 切片取最后一列_python矩阵的切片(或截取)
  2. python爬取素材图片代码_一篇文章教会你利用Python网络爬虫获取素材图片
  3. 注意看,一款好用的日报、周报系统突然出现
  4. Excel函数应用(2)
  5. OpenStack-Nova组件和部署
  6. 后台开发核心技术(七)TCP协议
  7. 如何在 Python 中使用断点调试
  8. HTML5 参考手册 ———— 画布
  9. .net core Graphics合成图片加文字
  10. 什么塑造了今天的编程世界