在使用python的pip命令安装各类package时,命令运行后会分3次返回警告类信息:

Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.
connection.VerifiedHTTPSConnection object at 0x00000218CA6213C8>, 'Connection to pypi.python.org timed out. (connect timeout=15)')'

如图:

最终会产生红色字体报错:

Could not find a version that satisfies the requirement locustio==0.14.6 (from versions: )
No matching distribution found for  xxx


原因:由于防火墙、server安全策略等问题造成网络不通畅无法下载目标文件(也有可能是镜像源在国外服务器,导致连接过慢或超时)


 解决方案:

1、打开手机-个人热点-启用热点

2、电脑连接手机的热点后,在编辑器内按↑箭头键重新加载刚刚输入的命令并回车

3、等待下载完成即可

*个人热点会消耗手机流量,如手机流量较少此方法慎用,想其它办法更换网络环境


补充:大部分情况用以上方法均可解决,如果上述方案仍解决不了问题,则可以使用国内镜像源的方式来完成下载,请参考我的另一篇文章:安装python包时出现超时(time out)情况的解决方案是基于Anaconda的方法(点击下方链接直接进入)

*亲测有效,速度会提升n倍(n为大于等于0的正整数)

安装python包时出现超时(time out)情况的解决方案https://blog.csdn.net/Liu_GuoXing/article/details/129708151?spm=1001.2014.3001.5502


❤关注我,不迷路❤

******我的本文相关专栏******

软件测试 & 开发(单击此处进入)


******我的其它作品专栏******

PC常见故障汇总专栏(点击进入)

EXCEL综合场景应用详解(点击此处进入)

全国计算机等级考试-二级python基础(点击此处进入)

关于Could not find a version that satisfies the requirement报错的解决方案相关推荐

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

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

  2. Tensorflow安装问题: Could not find a version that satisfies the requirement tensorflow pip命令...

    引言: Tensorflow大名鼎鼎,这里不再赘述其为何物.这里讲描述在安装python包的时候碰到的"No matching distribution found for tensorfl ...

  3. Could not find a version that satisfies the requirement pyspider (from versions: ) No matching distr

    Could not find a version that satisfies the requirement pyspider (from versions: ) No matching distr ...

  4. python3 pip3 安装包报错 Could not find a version that satisfies the requirement 解决方法

    现象: [root@e45b79f0cd70 Python-3.9.0]# pip3 install pycryptodome Looking in indexes: https://pypi.dou ...

  5. Could not find a version that satisfies the requirement pox=0.2.6 (from pathos)

    Could not find a version that satisfies the requirement pox>=0.2.6 (from pathos) pip install path ...

  6. 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 ...

  7. windows上报错:Could not find a version that satisfies the requirement torch==0.4.1

    windows上错误:Could not find a version that satisfies the requirement torch==0.4.1 文章目录: 一.问题 1.错误问题的出现 ...

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

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

  9. 成功解决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 ...

最新文章

  1. JSON字符串 拼接与解析
  2. Appium+python自动化19-iOS模拟器(iOS Simulator)安装自家APP
  3. python备份cisco交换机_Python备份Cisco交换机配置 | CN-SEC 中文网
  4. mybatis-Batch Executor
  5. 架构重构改善既有代码的设计
  6. linux 搜索命令 历史,Linux 控制台神器:搜索历史命令 Ctrl + R ( ctrl + r to search the history command )...
  7. cuda编程_CUDA刷新器:CUDA编程模型
  8. JBoss-4.2.3.GA下发布EJB3项目遇到的问题之JSF篇
  9. ob测试过程问题记录
  10. 交替性注意力_玩出专注力,一次对付五种专注力不足
  11. 打印机出现另存为xps_win7系统打印文件时弹出另存为xps/pdf的解决方法
  12. 第一次在win10的系统上装oracle 10g 的服务端和客户端遇到了一下两个问题,在这里记录一下。。。。。。
  13. Unity3d-简单AR游戏
  14. (十)MySQL中的逻辑条件 优先规则 排序(未完版)
  15. 依米花音乐播放器php源码下载
  16. 我的人生只适合黑夜,第一天
  17. CA6140机床后托架加工工艺及夹具设计(论文+CAD图纸+开题报告+任务书+工艺卡+外文翻译)
  18. ISE头条号海报生成器
  19. Maccms苹果cmsV10内核二开听书网有声小说在线听书听书模板+源码+火车头采集+后台API自动采集
  20. Windows Server Realvnc点击无法启动的解决方法

热门文章

  1. HTML5简易涂鸦板制作
  2. 中山大学计算机学科评估等级,你的学校上榜了吗?最新学科评估结果出炉,广东这些高校的专业厉害了!(附详细名单)...
  3. if条件判断中的-z到-d的意思
  4. java 全国电视台直播_基于JAVA的电视台直播节目时间表api调用代码实例
  5. 一个简单的CPP处理框架
  6. 制胜充电桩下半场,特来电、星星充电们要靠运营?
  7. 绥化学院计算机科学技术,绥化学院本科计算机科学与技术_绥化学院本科计算机科学与技术简介-查字典学校网...
  8. heic后缀 PHP,后缀是.heic的文件如何转换成jpg格式?
  9. 在SharePoint中创建可自定义属性的文件夹
  10. Android高效的EPG界面实现方式