Pip安装包在交换路由器后不再在RPi上工作

2024-05-03 16:14:52 发布

您现在位置:Python中文网/ 问答频道 /正文

所以最近,我升级了我的网络计划,所以我的ISP不得不更换我的路由器,因为我的旧路由器无法控制新的速度。那天早上,ISP技术人员去交换路由器,我更新了aioredis(和aiohttp,因为这是一个要求)。然而在下午,路由器被切换之后,我再也不能更新我在项目中使用的另一个核心库了。我做了pip install -U libneko,得到了以下信息

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/libneko/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/libneko/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/libneko/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/libneko/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))': /simple/libneko/
Requirement already up-to-date: libneko in ./lib/python3.7/site-packages (-)

我很困惑,因为这在我身上从未发生过。我做了一些研究,我所能发现的是它可能是一些SSL问题,但我也发现了this。 奇怪的是,我最近更新了SSL(在python3.7virtualenv输出上执行python -c "import ssl; print(ssl.OPENSSL_VERSION)")。你知道吗

我试图测试这是否是一个一般的SSL问题,所以我做了wget gnu.org,得到了indext.html,没有问题。然而,当我尝试做wget files.pythonhosted.orgwget pypi.org时,我得到了这个

--2018-08-24 21:07:06--  http://pythonhosted.org/
Resolving pythonhosted.org (pythonhosted.org)... 2a04:4e42:600::319, 2a04:4e42:400::319, 2a04:4e42:200::319, ...
Connecting to pythonhosted.org (pythonhosted.org)|2a04:4e42:600::319|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://pythonhosted.org/ [following]
--2018-08-24 21:07:06--  https://pythonhosted.org/
Connecting to pythonhosted.org (pythonhosted.org)|2a04:4e42:600::319|:443... connected.
GnuTLS: Error in the pull function.
Unable to establish SSL connection.

--2018-08-24 21:07:14--  http://pypi.org/
Resolving pypi.org (pypi.org)... 2a04:4e42:200::223, 2a04:4e42::223, 2a04:4e42:400::223, ...
Connecting to pypi.org (pypi.org)|2a04:4e42:200::223|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://pypi.org/ [following]
--2018-08-24 21:07:14--  https://pypi.org/
Connecting to pypi.org (pypi.org)|2a04:4e42:200::223|:443... connected.
GnuTLS: Error in the pull function.
Unable to establish SSL connection.

所以。。。我现在有点困惑。有人知道这是什么吗?你知道吗

另外,我的RPi正在运行NextCloudPi v0.46.0(我知道它已经过时了,但我打算重新安装一次,因为我的nextcloud在前一段时间因为安装错误而全部损坏)。你知道吗


Tags: toorgpypinonereadbyconnectconnection