Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/352.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python pip不';t连接,can';不要安装任何东西_Python_Python 3.x_Pip_Raspberry Pi4 - Fatal编程技术网

Python pip不';t连接,can';不要安装任何东西

Python pip不';t连接,can';不要安装任何东西,python,python-3.x,pip,raspberry-pi4,Python,Python 3.x,Pip,Raspberry Pi4,我试图在raspberry pi 4(Raspian Buster)上使用pip安装,但我已经有一段时间遇到相同的错误,我尝试了很多常见的修复,但都没有成功 我已经尝试过的: -apt获取更新和升级 -已卸载和安装的opensll -多次卸载和安装pip和pip3 -已卸载并安装python和python3(重新启动) -我没有被防火墙或任何东西阻挡(我使用的是树莓皮4,直接连接到家里的路由器) 示例输出,与pip/pip3相同的结果,使用sudo和not,并尝试使用标志“-default ti

我试图在raspberry pi 4(Raspian Buster)上使用pip安装,但我已经有一段时间遇到相同的错误,我尝试了很多常见的修复,但都没有成功

我已经尝试过的:
-apt获取更新和升级
-已卸载和安装的opensll
-多次卸载和安装pip和pip3
-已卸载并安装python和python3(重新启动)
-我没有被防火墙或任何东西阻挡(我使用的是树莓皮4,直接连接到家里的路由器)

示例输出,与pip/pip3相同的结果,使用sudo和not,并尝试使用标志“-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必须连接到任何东西时,我都会收到这种类型的错误,是否知道为什么会发生这种情况?

使用
pip-v
增加详细性。可能详细的输出将提供更多信息。请尝试更新您的pip,
easy\u install——升级pip