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) 解决方案相关推荐

  1. 已解决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 ...

  2. 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 ...

  3. 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 ...

  4. 邮件发送: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: ...

  5. 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 ...

  6. 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 ...

  7. 解决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拒绝连接原因分析 二.错 ...

  8. 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 ...

  9. 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 ...

最新文章

  1. Android Drawable 详解(教你画画!)
  2. ICLR2021 | 清华大学黄高团队:显存不够?不妨抛弃端到端训练
  3. 学习Hadoop时遇到的问题以及解决方法
  4. Comet OJ - Contest #2题解
  5. [Cypress] install, configure, and script Cypress for JavaScript web applications -- part3
  6. 576. 出界的路径数
  7. 第二章 信息的表示和处理
  8. mybatis多数据源配置_随笔:springboot+mybatis 配置双数据源
  9. [bzoj 4774]修路
  10. layer.open()利用代码实现伪阻塞
  11. atomic_fetch_add
  12. 在手机上抓包HTTP/HTTPS的请求
  13. matlab仿真plc程序,电气工程PLC控制和Matlab-Simulink仿真模拟的一种翻译方法毕业论文外文文献翻译.doc...
  14. wincc与SQL Server数据库通讯的方法介绍
  15. python中布尔类型的值包括_Python 布尔值(Booleans)
  16. Java多线程——ConcurrentMap、ConcurrentHashMap
  17. dw常用标签_一个新人对于DW标签的理解
  18. 使用MetaMask客户端获取以太坊测试网络ropsten测试币
  19. 联想小新14pro锐龙版网卡rtl8852ae在ubunru18.04装网卡驱动
  20. 手机显示主宰进攻服务器,xy盛世遮天真龙主宰

热门文章

  1. 考研计算机考多少算高分,考研究生需要多少分才能录取 考多少算高分
  2. aseprite编译
  3. java接口的关键字_Java 接口 interface关键字
  4. 四叶草启动linux黑屏,U盘clover引导原版10.9黑屏,是啰嗦模式之后白屏闪一下熄灭...
  5. 学计算机大四学生的简历,大四学生简历中自我评价
  6. linux 终端发出哔声,在Linux Gnome系统上关闭终端的硬件蜂鸣声的方法
  7. Ubuntu删除了全部普通用户后怎么进入系统(linux中guest用户切换为root登陆)
  8. 算法设计与分析[贪心]-汽车加油问题
  9. php的basename,php basename 函数
  10. sob攻略超详细攻略_青海湖旅游攻略(超详细住宿篇)