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 ...
最新文章
- 深度有趣 | 06 变分自编码器
- linux切换到顶层命令,一些在Linux下提高工作效率的常用命令
- wxWidgets:wxSpinCtrlDouble类用法
- Web攻防之XSS,CSRF,SQL注入
- 路由器链路聚合技术(Eth-Trunk、Ip-Trunk)
- ios字典存bool_iOS 开发之字典写入文件
- steam登录api_steam饰品骗术——骗你说你的账户违反了 Steam 服务协议条款,然后让你转出库存给你的好友。...
- 最新大数据资料合集.pdf
- 史上最全idea插件开发入门实战(傻瓜式教程)
- 《时代》杂志评出2007年50个最佳网站
- EMBA必看书籍推荐
- vue做音乐播放器完整功能
- 【Android 源码学习】SharedPreferences 源码学习
- 化工原理计算机辅助设计,化工原理课程设计心得三篇
- jar包启动调用外系统文件上传,无法生成文件,报org.springframework.web.client. ResourceAccessException: I/0 error on POST
- U8采购入库单API接口示例(参照采购到货)
- Visual Studio Code (echarts)数据可视化,设置数据缩放区间为20到40,设置标题字体大小,颜色以及是否加粗,设置柱状图颜色
- 计算机网络-应用层-万维网WWW
- 初学JavaScript:数组
- docker学习整理
热门文章
- animator 控制移动_Unity 又是一坑之移动AnimatorState
- python并且符号_Python如何从文字中分离标点符号
- 52-第三方控件修饰文本输入框
- C语言/C++内存管理
- 计算机网络安全的解决方案,计算机网络安全网络安全解决方案.ppt
- matlab fmincon优化,matlab fmincon优化问题
- 一个测试管理者的年终总结
- 快速学习 空间转换 3D转换-位移、旋转、缩放
- 【题解】幼儿园篮球题(范德蒙德卷积+斯特林+NTT)
- 给网站添加IPv6 DNS记录