HTTPConnectionPool(host=‘127.0.0.1‘, port=44245) 解决方案
Error:
1. 访问网络时
requests.exceptions.ProxyError: HTTPConnectionPool(host=‘127.0.0.1’, port=44245): Max retries exceeded with url ...
(Caused by ProxyError(‘Cannot connect to proxy.’, NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7ff14a3ccdd0>: Failed to establish a new connection: [Errno 111] Connection refused’,)))
2. 或者在使用Conda时
botocore.exceptions.ProxyConnectionError: Failed to connect to proxy URL: “http://127.0.0.1:44245/”
在Ubuntu中使用代理服务器后,修改代理的配置后或者删除,原来的配置还是存在的,导致不能联网
解决方案: Ubuntu 删除 Proxy
1. 查看当前使用代理,如果有,需要去掉
env | grep -i proxy
输出:
NO_PROXY=localhost,127.0.0.0/8,::1
HTTPS_PROXY=http://127.0.0.1:44245/
no_proxy=localhost,127.0.0.0/8,::1
HTTP_PROXY=http://127.0.0.1:44245/
2. 去掉所有代理
unset HTTP_PROXY
unset HTTPS_PROXY
3. OK!
4. (Optional)若还是无法解决:
export HTTP_PROXY=""
export HTTP_PROXY=""
export http_proxy=""
export https_proxy=""
【注】经常是python2有问题切换到python3就可以。
HTTPConnectionPool(host=‘127.0.0.1‘, port=44245) 解决方案相关推荐
- 已解决requests.exceptions.ConnectTimeout: HTTPConnectionPool(host=‘123.96.1.95‘, port=30090): Max retri
已解决requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='123.96.1.95', port=30090): Max retri ...
- weblogic cluster error-----Could not= open connection with host: 127.0.0.1
weblogic主机及一台从机启动成功后,在启动从机的时候报错, <BEA-000905> <Could not open connection with host: 127.0.0 ...
- vue2.5.2版本 :MAC设置应用在127.0.0.1:80端口访问; 并将127.0.0.1指向www.yours.com ;问题“ Invalid Host header”
0.设置自己的host文件,将127.0.0.1指向自己想要访问的域名 127.0.0.1 www.yours.com 1.MAC设置应用在127.0.0.1:80端口访问: config/index ...
- 邮件发送:Could not connect to SMTP host: 10.0.76.11, port: 25
这个问题咋看可能是环境配置问题,实际也有可能是ssl协议不支持的问题: 2020-10-21 15:32:16.094 [ERROR] [DubboServerHandler-10.244.2.30: ...
- postgresql数据库无法连接,提示 Is the server running on host localhost (127.0.0.1) and accepting TCP/IP conn
postgresql数据库无法连接,提示 Is the server running on host "localhost" (127.0.0.1) and accepting T ...
- dubbo could not get local host ip address will use 127.0.0.1 instead 异常处理
dubbo could not get local host ip address will use 127.0.0.1 instead 异常处理 参考文章: (1)dubbo could not g ...
- 解决git下载出现:Failed to connect to 127.0.0.1 port 1080: Connection refused拒绝连接错误
解决git下载出现:Failed to connect to 127.0.0.1 port 1080: Connection refused拒绝连接错误 文章目录: 一.git拒绝连接原因分析 二.错 ...
- Unable to open debugger port (127.0.0.1:4184): java.net.SocketException socket closed
Unable to open debugger port (127.0.0.1:4184): java.net.SocketException "socket closed" ht ...
- unable to access ‘https://gitee...‘: Failed to connect to 127.0.0.1 port 31181 after 2029 ms: Connec
idea提交推送代码到码云出现错误: unable to access 'https://gitee.com/-/': Failed to connect to 127.0.0.1 port 3118 ...
最新文章
- Android Drawable 详解(教你画画!)
- ICLR2021 | 清华大学黄高团队:显存不够?不妨抛弃端到端训练
- 学习Hadoop时遇到的问题以及解决方法
- Comet OJ - Contest #2题解
- [Cypress] install, configure, and script Cypress for JavaScript web applications -- part3
- 576. 出界的路径数
- 第二章 信息的表示和处理
- mybatis多数据源配置_随笔:springboot+mybatis 配置双数据源
- [bzoj 4774]修路
- layer.open()利用代码实现伪阻塞
- atomic_fetch_add
- 在手机上抓包HTTP/HTTPS的请求
- matlab仿真plc程序,电气工程PLC控制和Matlab-Simulink仿真模拟的一种翻译方法毕业论文外文文献翻译.doc...
- wincc与SQL Server数据库通讯的方法介绍
- python中布尔类型的值包括_Python 布尔值(Booleans)
- Java多线程——ConcurrentMap、ConcurrentHashMap
- dw常用标签_一个新人对于DW标签的理解
- 使用MetaMask客户端获取以太坊测试网络ropsten测试币
- 联想小新14pro锐龙版网卡rtl8852ae在ubunru18.04装网卡驱动
- 手机显示主宰进攻服务器,xy盛世遮天真龙主宰
热门文章
- 考研计算机考多少算高分,考研究生需要多少分才能录取 考多少算高分
- aseprite编译
- java接口的关键字_Java 接口 interface关键字
- 四叶草启动linux黑屏,U盘clover引导原版10.9黑屏,是啰嗦模式之后白屏闪一下熄灭...
- 学计算机大四学生的简历,大四学生简历中自我评价
- linux 终端发出哔声,在Linux Gnome系统上关闭终端的硬件蜂鸣声的方法
- Ubuntu删除了全部普通用户后怎么进入系统(linux中guest用户切换为root登陆)
- 算法设计与分析[贪心]-汽车加油问题
- php的basename,php basename 函数
- sob攻略超详细攻略_青海湖旅游攻略(超详细住宿篇)