在切换路由器后,RPP上的Pip安装软件包不再起作用

时间:2018-08-24 21:41:29

标签: python ssl pip raspberry-pi3

所以最近,我升级了我的互联网计划,所以我的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(在python 3.7 virtualenv输出python -c "import ssl; print(ssl.OPENSSL_VERSION)"上执行OpenSSL 1.1.0f 25 May 2017)。

我尝试测试这是否是一般的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很快就陷入了困境)。

0 个答案:

没有答案