Python安装、更新,第三方库时遇到:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None···
前言
使用Python的小伙伴避免不了安装各种第三方库,时长会出现命令输入正确,却无法完成安装,找了很多种方法都无法解决,为此我整理了几种方式,希望可以帮到你。
错误信息
安装或更新第三方库时报错详细信息:
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, OSError(0, ‘Error’))’: /simple/zipp/
出现问题的原因
引起安装失败的原因是由于pip的库是Python自带的,安装较慢或者服务链接不顺畅,导致执行命令是无法找到该第三方库。修改pip引用的镜像地址即可。国内镜像地址在文章尾部,请自取。
方式一:
不更改镜像地址,单个第三方库安装命令
#在命令执行窗输入:
pip install Pyinstaller -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
(其中的Pyinstaller 是你需要下载的库或包名,根据自己需求自行更改即可)
方式二:
- 将镜像地址修改未阿里云http://mirrors.aliyun.com/pypi/simple/
- 找到路径:C:\Users\dxy\AppData\Roaming
- Roaming路径下有个pip文件夹,将pip文件夹中的pip.ini文件修改为阿里镜像地址
#如果Roaming路径下没有pip文件夹或pip文件夹下没有pip.ini文件,可自己创建
[global]
index-url = http://mirrors.aliyun.com/pypi/simple
trusted-host = mirrors.aliyun.com
配置完成后,重新执行命令即可
推荐镜像地址
pip安装
pip install jupyterlab -i https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云 http://mirrors.aliyun.com/pypi/simple/豆瓣(douban) pip install jupyterlab -i http://pypi.douban.com/simple/清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/中国科学技术大学http://pypi.mirrors.ustc.edu.cn/simple/
pip install d2l==0.17.3 -i https://pypi.tuna.tsinghua.edu.cn/simple/
pytorch:http://121.199.45.168:8020/1/
自然语言处理入门:http://121.199.45.168:8005/
文本预处理:http://121.199.45.168:8003/1/#11
经典序列模型:http://121.199.45.168:8004/1/
RNN及其变体:http://121.199.45.168:8002/1/
Transformer:http://121.199.45.168:8001/1/
迁移学习:http://121.199.45.168:8007/1/
Python安装、更新,第三方库时遇到:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None···相关推荐
- pip安装第三方库,报错 Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection brok
错误: 报错原因: 国外镜像源连接问题导致 解决: 改为国内镜像源下载 常用国内源: 清华:https://pypi.tuna.tsinghua.edu.cn/simple/ 阿里云:http://m ...
- python WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))————
问题:在使用python时,使用pip安装matplotlib出错(pip install matplotlib),错误信息:WARNING: Retrying (Retry(total=4, con ...
- [Python系列-23]:WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)
作者主页(文火冰糖的硅基工坊):文火冰糖(王文兵)的博客_文火冰糖的硅基工坊_CSDN博客 本文网址:[Python系列-23]:WARNING: Retrying (Retry(total=4, c ...
- WARNING:Retrying(Retry(total=4,connect=None,read=None,redirect=None,status =None))connect broken解决方案
大家好,我是爱编程的喵喵.双985硕士毕业,现担任全栈工程师一职,热衷于将数据思维应用到工作与生活中.从事机器学习以及相关的前后端开发工作.曾在阿里云.科大讯飞.CCF等比赛获得多次Top名次.现 ...
- 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 ...
- 报错: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 ...
- 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))
报错:WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) 原因是位于国内的的 ...
- WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) 决办法:pip inst ...
最新文章
- 使用wmi的snmp类查询计算机网卡信息的源代码,在java中使用SNMP和/或wmi / wmic进行进程到端口的映射...
- 其他机无法连接到redis
- 图像识别开源代码_灰度图像着色开源代码
- xmlxml约束dtdxml解析器
- 费诺编码的gui页面设计_关于页面可视化搭建的一些思考(一)
- 建设城市(city)(【CCF】NOI Online 能力测试2 入门组第三题 )
- golang编译之vendor机制
- java开源项目网站社区_一些开源项目网址
- NZT、AWZ这种一键新机软件原理详解!
- Multispectral Deep Neural Networks for Pedestrian Detection(BMVC 2016)论文解读
- 机器人瓦力漫威_漫威归来的发明家
- spleeter音乐人声分离、5种架子鼓钢琴声音分离的高质量模型运行超详细教程windows+ubuntu18.04
- 尚G谷大前端视频教程
- 【淘宝SEO技巧】淘宝宝贝标题关键字优化
- http的网页下加载https图片失败
- Postman工具的简单介绍
- 有赞云开发小坑(个人笔记)
- 谁在滋养你,谁在消耗你
- WEB 报表如何做到不需要预览就直接打印
- 介绍java的ppt_javaweb介绍.ppt
热门文章
- [KM算法]hdoj 3722:Card Game
- ppp项目 政府 服务器,ppp验证之AAA服务器
- 计算机组成原理branch,处理器结构--分支预测(Branch Prediction)
- li标签的点怎么设置_固定资产管理系统的标签,你知道怎么设置吗?
- 数据安全治理能力提升(二)
- 一加手机怎么root权限_一加手机2怎么root? 一加2一键获取root权限教程图解
- 一个简易的会员管理系统(C语言)
- 利用F12开发者工具 自动化网上抢课
- roy fielding_Hanselminutes播客169-Roy Osherove进行单元测试的技巧
- opensuse 安装 php,安装与openSUSE基本使用