解决pip安装包报错:WARNING: Retrying (Retry(XXX) after connection broken by ‘ProxyError(‘
下面以ubuntu系统为例,windows可以参考类似的解决思路
问题
pip安装任何包都报错WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ProxyError(‘Cannot connect to proxy.’, ConnectionResetError(104, ‘连接被对方重设’))’:
即使下载源码,使用pip setup.py install命令安装仍旧报错
解决思路
- 改变pip源,使用以下命令安装
pip install 包名 -i 源url地址 --trusted-host 源域名
e.g.: pip install keras -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
常见的国内pip源
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/
方法1无效的情况下,先不要考虑源码安装,这会导致你每个包都手动安装,很麻烦,甚至还有一堆错误。先考虑方法2
- 查看系统是否开了代理,关闭代理
查看是否开了代理:
env | grep -i proxy
修改配置文件关代理:
sudo vim /etc/enviroment
source /etc/profile
检查后还有代理,使用以下命令:
unset http_proxy
unset https_proxy
解决pip安装包报错:WARNING: Retrying (Retry(XXX) after connection broken by ‘ProxyError(‘相关推荐
- 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 ...
- Windows7下pip安装包报错 Microsoft Visual C++ 9 0 is required Unabl
Windows7下pip安装包报错:Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat 在Windows7x64下使用p ...
- pip安装包报错Error:-3 域名解析暂时失败
pip安装包报错Error:-3 域名解析暂时失败' 解决: 检查虚拟机网络适配器
- 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, ...
- Windows下pip安装包报错:Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat
刚在机器上windows环境下装上pip方便以后安装包的时候使用,谁知道第一次使用pip安装asyncio的时候就报错. 在Windows7x64下使用pip安装包的时候提示报错:Microsoft ...
- pip安装包报错Could not find a version that satisfies the requirement pymysql (from versions: none)
使用python自带的pip安装包时,可能会报以下错误: ERROR: Could not find a version that satisfies the requirement pymysql ...
- Python pip install 安装包报错ERROR: Could not find a version that satisfies the requirement XXX解决方法
Python pip install 安装包报错ERROR: Could not find a version that satisfies the requirement XXX解决方法 文章目录 ...
- 完美解决React 注册模块报错Missing message: “menu.xxx“ for locale: “zh-CN“, using default message as fallback问题
完美解决React 注册模块报错Missing message: "menu.xxx" for locale: "zh-CN", using default m ...
- 解决 Python pip 安装报错:Retrying (Retry(total=4, connect=None, read=None ...)) after connection
1. 在python中安装包时发生了如图所示bug, 原因是连接超时,所以需要自己设定安装源, 2. 解决方法: 在 pip命令后自己设定收集源(-i +url) 通过豆瓣: pip install ...
最新文章
- python 网页上显示数据_用Python实现网页数据抓取
- 上周热点回顾(12.18-12.24)
- ASP.NET MVC 中宿主WCF Rest 服务的解决方法
- 项目编译失败_Swift源码编译让底层更清晰
- linux裁剪图片的软件,ImageMagick教程:如何在Linux命令行中剪裁图像
- MySQL索引与Index Condition Pushdown(二)
- react 文本框_React自动完成文本框
- AMD中国:没有对拼多多及其平台上任何店铺授权
- Week 1 Team Homework #3 from Z.XML-软件工程在北航
- ROS入门-12.服务端Server的编程实现
- 在mac上制作PDF的基础教程
- maven本地仓库配置
- 开源直播推流sdk_携程移动直播探索
- 计算机视觉 | 1. 一切的基础: 灰度图像 (读取,转换,像素定位)
- Android SDK各个版本API的特性及兼容性(Dalvik/ART)
- 产品经理必读:敏捷开发中的需求管理过程全解
- 关于win7下r3窗口进程保护的一些方式
- 信息收集之外网信息收集
- Chrome浏览器提示adobe flash player不是最新版本!
- PHPCMS V9 全站调用会员信息代码