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

Python 交换路由器后,Pip安装包不再在RPi上工作,python,ssl,pip,raspberry-pi3,Python,Ssl,Pip,Raspberry Pi3,所以最近,我升级了我的互联网计划,所以我的ISP不得不更换我的路由器,因为我的旧路由器无法控制新的速度。那天早上,ISP技术人员去交换路由器,我更新了aioredis(和aiohttp,因为这是一项要求)。然而,在下午,路由器被切换后,我无法再更新我在项目中使用的另一个核心库。我做了pip安装-U libneko,得到了以下消息 Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after

所以最近,我升级了我的互联网计划,所以我的ISP不得不更换我的路由器,因为我的旧路由器无法控制新的速度。那天早上,ISP技术人员去交换路由器,我更新了
aioredis
(和
aiohttp
,因为这是一项要求)。然而,在下午,路由器被切换后,我无法再更新我在项目中使用的另一个核心库。我做了
pip安装-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问题,但我也发现了。 奇怪的是,我最近更新了SSL(在2017年5月25日的Python3.7 virtualenv输出上执行python-c“导入SSL;打印(SSL.OPENSSL_版本)”)

我试图测试这是否是一个一般的SSL问题,所以我做了
wget gnu.org
,并获得了
indext.html
,没有问题。然而,当尝试执行
wget files.pythonhosted.org
wget 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在某个时候因为我在安装上犯了一个错误而坏掉了。)

您是否尝试过
ping
IPv4地址以及IPv6地址?IPv6配置可能有问题。ping
8.8.8.8
2001:4860:4860::8888
似乎都不错。