Python Pip安装无法在Ubuntu上安装任何软件包

Python Pip安装无法在Ubuntu上安装任何软件包,python,pip,virtualenv,requirements.txt,Python,Pip,Virtualenv,Requirements.txt,当你想跑的时候 pip install -r requirements.txt 我得到输出: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.Veri

当你想跑的时候

pip install -r requirements.txt
我得到输出:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fd411c5b730>: Failed to establish a new connection: [Errno 111] Connection refused'))': /simple/mypy/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fd411c4f9d0>: Failed to establish a new connection: [Errno 111] Connection refused'))': /simple/mypy/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fd411c4f130>: Failed to establish a new connection: [Errno 111] Connection refused'))': /simple/mypy/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fd411c4f160>: Failed to establish a new connection: [Errno 111] Connection refused'))': /simple/mypy/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fd411c4f1c0>: Failed to establish a new connection: [Errno 111] Connection refused'))': /simple/mypy/
ERROR: Could not find a version that satisfies the requirement mypy==0.790 (from -r requirements_dev.txt (line 1)) (from versions: none)
ERROR: No matching distribution found for mypy==0.790 (from -r requirements_dev.txt (line 1))
警告:在连接被“ProxyError('无法连接到代理')、NewConnectionError(':无法建立新连接:[Errno 111]连接被拒绝])”中断后重试(重试(重试(总计=4,连接=None,读取=None,重定向=None,状态=None)):/simple/mypy/
警告:在连接被“ProxyError('无法连接到代理')、NewConnectionError(':无法建立新连接:[Errno 111]连接被拒绝])”中断后重试(重试(重试(总计=3,连接=None,读取=None,重定向=None,状态=None)):/simple/mypy/
警告:在连接被“ProxyError('无法连接到代理')、NewConnectionError(':无法建立新连接:[Errno 111]连接被拒绝])”中断后重试(重试(重试(总计=2,连接=None,读取=None,重定向=None,状态=None)):/simple/mypy/
警告:在连接被“ProxyError('无法连接到代理')、NewConnectionError(':无法建立新连接:[Errno 111]连接被拒绝])”中断后重试(重试(重试(总计=1,连接=None,读取=None,重定向=None,状态=None)):/simple/mypy/
警告:在连接被“ProxyError('无法连接到代理')、NewConnectionError(':无法建立新连接:[Errno 111]连接被拒绝])”中断后重试(重试(重试(总计=0,连接=None,读取=None,重定向=None,状态=None)):/simple/mypy/
错误:找不到满足要求mypy==0.790的版本(来自-r requirements_dev.txt(第1行))(来自版本:无)
错误:找不到mypy==0.790的匹配分布(来自-r requirements_dev.txt(第1行))
我正在运行:Ubuntu 20.04

版本:Python3.8.5、PIP20.0.2

不是在代理人后面。使用virtualenv但pip安装在virtualenv之外也不起作用


我尝试过几次重新安装pip,并且在pip3上有一个别名,这就是为什么pip应该工作的原因。我也尝试过升级pip,但总是发现我的输出已经是最新的。

您没有代理,但您的配置似乎不这么认为。如果您确实没有代理,则必须验证代理设置的配置文件和环境变量,并将其删除。看,您没有代理,但您的配置似乎不这么认为。如果您确实没有代理,则必须验证代理设置的配置文件和环境变量,并将其删除。看见