错误:

报错原因:

国外镜像源连接问题导致

解决:

改为国内镜像源下载

常用国内源:

清华:https://pypi.tuna.tsinghua.edu.cn/simple/

阿里云:http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

华中理工大学:http://pypi.hustunique.com/

山东理工大学:http://pypi.sdutlinux.org/

豆瓣:http://pypi.douban.com/simple/

以清华大学镜像源下载为例:

一、直接使用镜像源下载

安装指令:pip install xxx(包名) -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn(后为镜像源地址)

--trusted-host :后边指的是host,例清华大学镜像源地址为 https://pypi.tuna.tsinghua.edu.cn/simple/,host就是指http://和/之间的部分,即pypi.tuna.tsinghua.edu.cn

使用命令:pip install pytest -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

备注:其他镜像源下载,-i,--trusted-host后部分更新为使用的镜像源即可,例,改为豆瓣镜像源下载,

   指令为:pip install xxx(包名) -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

二、配置默认使用某镜像源下载

1,在路径C:\Users\xxx新建pip目录,在该目录下新建pip.ini文件,将下面内容复制到pip.ini文件中,并保存

[global] 
index-url = https://pypi.tuna.tsinghua.edu.cn/simple 
[install] 
trusted-host=pypi.tuna.tsinghua.edu.cn

2,直接pip安装第三方包

指令:pip install xxx(包名)

pip安装第三方库,报错 Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection brok相关推荐

  1. pip安装第三方库报错Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None))

    pip安装第三方库报错Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) pip安装第三方库时 ...

  2. conda虚拟环境下使用pip安装包报错Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)

    Q1: conda虚拟环境下使用pip安装软件报错: WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, ...

  3. Python中使用pip安装第三方库报错解决方法

    参考:https://blog.csdn.net/answerxiaoai/article/details/104297187 在安装Google开源维护的算法优化求解器Ortools时出现错误,采用 ...

  4. Python安装、更新,第三方库时遇到:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None···

    前言 使用Python的小伙伴避免不了安装各种第三方库,时长会出现命令输入正确,却无法完成安装,找了很多种方法都无法解决,为此我整理了几种方式,希望可以帮到你. 错误信息 安装或更新第三方库时报错详细 ...

  5. 【Ubuntu 下 pip 报错】 Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) aft

    Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection brok ...

  6. 【解决方案】报错:WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None))

    报错:WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) 原因是位于国内的的 ...

  7. pip安装包时报错WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status =None))

    问题描述: 今天打算安装一下tensorflow,但是老报错:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=N ...

  8. 报错:WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after con

    报错内容: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after ...

  9. Looking in indexes: xxx WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None

    docker 构建python程序报错 Step 7/10 : RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple --trust ...

最新文章

  1. 智能改变未来,创新引领世界,第二届深圳国际人工智能展暨智能制造创新高峰论坛盛大启幕!
  2. CentOS6.5-源码编译安装最新MySQL5.7.10
  3. Scrapy 爬虫实例 抓取豆瓣小组信息并保存到mongodb中
  4. wdcp导出mysql_phpmyadmin导入导出mysql(只适用WDCP系统)
  5. Android NDK学习笔记3:JNI访问Java属性、方法
  6. JIRA6.3.6中设置用户的解决问题和关闭问题权限
  7. 牛客练习赛 65 (待补E-网络流)
  8. redis-python操作redis
  9. 重量级 | 重量级!Maven史上最全教程,看了必懂
  10. html里面textfield属性,StyleableTextField的CSS属性htmlText
  11. 手机号码正则_正则表达式小白有这两个工具就够了 正则表达式生成工具
  12. Euraka的搭建和使用
  13. YML解析框架SnakeYaml简介
  14. 【面试常问】Redis的持久化机制是什么?各自的优缺点?
  15. Codeforces Round #247 (Div. 2) - k-Tree
  16. Gitlab修改文件上传10M大小限制
  17. 853. 有边数限制的最短路(bellman_ford算法)
  18. Office Web App
  19. js里面怎么动态的为对象添加属性
  20. switch语句和for循环的认识与使用

热门文章

  1. JMX enabled by default Error contacting service. It is probably not running错误解决
  2. git for windows下载
  3. C#桌面办公应用-工资管理系统系列五
  4. FlySee(绿色图片查看器)3.3.4 发布
  5. python3**2的值,线性回归中的R*2平方值
  6. elasticsearch win10 安装
  7. 基于javaweb仓库理系统设计与实现进销存管理.rar(论文+毕业设计+源码+答辩PPT)
  8. java 设置全局变量
  9. 泰拳的快感之二——我看《冬荫功》
  10. sideeffects没配置css也还在,webpack4踩坑配置之sideEffects, 打包文件中没有css文件