python - 无法在 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
解决方案
看起来您正尝试从办公室进行连接。如果是这种情况,则可能是您无法连接到互联网进行此升级。我面临同样的问题。
尝试离开你的办公室网络。
推荐阅读
- android - 如何在此代码中显示另一个文本视图?
- vba - 删除记录时出现错误 1004“应用程序定义或对象定义错误”
- c# - 在调试模式 xamarin 表单上启动应用程序到设备时遇到无法获取提供程序 com.google.firebase.provider.FirebaseInitProvider 错误
- c# - C#:增加 HttpWebRequest 的并发连接数
- python - 更改“创建”按钮 flask-admin 的链接位置
- javascript - 修复了 ios Safari 弹跳时标题消失的问题
- java - 在Java中按值过滤地图?
- ruby-on-rails - Friendly_id PG::InvalidTextRepresentation:错误:整数输入语法无效:
- python - 编写一个小型 Python 字典
- php - 不能从另一个文件夹引用非 php 文件?