pip安装第三方库,报错 Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection brok
错误:
报错原因:
国外镜像源连接问题导致
解决:
改为国内镜像源下载
常用国内源:
清华: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相关推荐
- 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安装第三方库时 ...
- 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, ...
- Python中使用pip安装第三方库报错解决方法
参考:https://blog.csdn.net/answerxiaoai/article/details/104297187 在安装Google开源维护的算法优化求解器Ortools时出现错误,采用 ...
- Python安装、更新,第三方库时遇到:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None···
前言 使用Python的小伙伴避免不了安装各种第三方库,时长会出现命令输入正确,却无法完成安装,找了很多种方法都无法解决,为此我整理了几种方式,希望可以帮到你. 错误信息 安装或更新第三方库时报错详细 ...
- 【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 ...
- 【解决方案】报错: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)) 原因是位于国内的的 ...
- 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 ...
- 报错: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 ...
- 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 ...
最新文章
- android 实现 下拉筛选的效果
- 重大改变!Python 或将取代 VBA 成为 Excel 官方脚本语言
- Dinic算法----最大流常用算法之一
- 纯IPv6环境App适配的坑
- H3C批量收集服务器信息,H3C设备服务器采集参数认证过程(包含redfish和restfull协议)...
- Arduino笔记-ESP8266模块实现https远程关熄灯功能
- 某些安卓手机在Mac系统下无法通过数据线连接ADB(安卓手机USB双模式)解决方案...
- PhpSpreadsheet设置单元格常用操作汇总
- Web渗透测试学习路线图
- Vue中使用防抖与截流
- 如何做好产品经理和如何学习UI
- ubuntu18.04 littlevgl运行环境搭建
- 《杜拉拉升职记》职场36计
- Java串口开发教程(javax.comm)
- 深入理解Linux内核之主调度器(下)
- 7-6 日K蜡烛图 (15 分)
- 网络工程师(软考)学习笔记1--计算机网络简介及分类
- 支付宝支付 App支付以及网页支付接入流程
- 【读MFiX源代码】MFiX中四种传热方式全面详解(对流、导热、辐射、反应热)并且输出以供后处理(2020-12-15更新)
- 微信v3支付签名 java main方法测试成功
热门文章
- CocosCreator H5小游戏屏幕适配解决方案
- Marple表演电影字幕
- 【图像压缩】香农熵和差分进化算法多级图像阈值图像压缩【含Matlab源码 2035期】
- java 扔雪球_扔雪球攻略 真正实现扔雪球百发百中!
- Hudson使用之Tomcat运行Hudson
- ElasticSearch (ES)学习之路(二)Win10安装ES,可视化界面,Kibanna
- USACO 3.2 Sweet Butter 香甜的黄油
- Ariel India旨在宣扬共同承担家务的新影片《See Equal》引发热烈反响
- Uranium UI Kit
- Play framework session和flash有效范围