Python错误104,对等连接重置 [英] Python Error 104, connection reset by peer

查看:198
本文介绍了Python错误104,对等连接重置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试向各种主机发出Web请求时遇到了此错误.经过一点调试后,我发现解决方案是通过pip更新请求[安全性].

I have been having this error when trying to make web requests to various hosts. After debugging a bit I have found the solution is updating the requests[security] through pip.

推荐答案

运行

sudo python3 -m pip install "requests[security]"

sudo python -m pip install "requests[security]"

要解决此问题.

这篇关于Python错误104,对等连接重置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆