首页 > 解决方案 > 无法在 Windows 10 中安装 pip

问题描述

在 Windows 10 上安装 pip 时遇到问题

C:\Users\AV20027531\Desktop>python get-pip.py

Collecting pip


Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/pip/

Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/pip/

Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/pip/

Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/pip/

Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))': /simple/pip/

Could not find a version that satisfies the requirement pip (from versions: )
No matching distribution found for pip

我尝试使用命令python -m pip install --upgrade pip 发生同样的错误。 我不知道这里有什么问题。 我在用 Python 3.6.2

标签: pythonpython-3.xpip

解决方案


看起来您正尝试从办公室进行连接。如果是这种情况,则可能是您无法连接到互联网进行此升级。我面临同样的问题。

尝试离开你的办公室网络。


推荐阅读