pip无法连接,无法安装任何东西

时间:2019-09-09 16:07:56

标签: python python-3.x pip raspberry-pi4

我正在尝试在树莓派4(Raspian Buster)上使用pip install,但是一段时间以来我一直遇到相同的错误,我尝试了很多常见的修复方法,但均无效果。

我已经尝试过的方法:
-易于获取更新和升级
-卸载并安装了opensll
-多次卸载并安装了pip和pip3
-卸载并安装了python和python3(重新启动)
-我没有被防火墙或其他任何东西阻挡(我正在使用直接连接到家庭路由器的树莓派4)

示例输出,使用sudo而不使用pip / pip3获得相同的结果,并且还尝试使用标志“ --default-timeout = 120”,总是得到相同的错误

$ sudo pip3 install  pyopenssl
Collecting pyopenssl
  WARNING: 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/pyopenssl/
  WARNING: 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/pyopenssl/
  WARNING: 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/pyopenssl/
  WARNING: 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/pyopenssl/
  WARNING: 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/pyopenssl/
  ERROR: Could not find a version that satisfies the requirement pyopenssl (from versions: none)
ERROR: No matching distribution found for pyopenssl

$ sudo pip3 install docker-compose
Collecting docker-compose
  WARNING: 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/docker-compose/
  WARNING: 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/docker-compose/
  WARNING: 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/docker-compose/
  WARNING: 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/docker-compose/
  WARNING: 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/docker-compose/
  ERROR: Could not find a version that satisfies the requirement docker-compose (from versions: none)
ERROR: No matching distribution found for docker-compose

每当pip必须连接到任何东西时,我都会遇到类似的错误,这是为什么会出现这种想法?

0 个答案:

没有答案
相关问题