【发布时间】:2018-09-14 09:11:54
【问题描述】:
您好,大约 2 周前,我开始无法下载 python 包,甚至无法访问在 chrome 和 firefox 上“无法访问”的 pypi 网站。
当我尝试下载一个包时,它给了我这个:
$ python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
Collecting numpy
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/numpy/
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/numpy/
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/numpy/
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/numpy/
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/numpy/
Could not find a version that satisfies the requirement numpy (from versions: )
No matching distribution found for numpy
我不知道为什么会发生这种情况,我没有在我的计算机上进行任何更改,它只是一天开始这样做,在我的两台计算机上,我不明白。 有谁知道为什么会这样?我搜索了几个小时,但找不到任何可以纠正这个错误的东西。
我尝试过的: - 卸载所有 python 程序并重新安装 - 检查我的司机(你永远不知道) - 停用任何代理 - 禁用我的防火墙
操作系统:Windows 10
【问题讨论】:
-
你用的是什么操作系统?
-
抱歉,忘记了,刚刚编辑过
-
为什么要使用python -m pip install,而不是直接使用pip?在 Windows 操作系统上安装 python 时,应该有一个选项来安装额外的包。选择该选项,还选择显示如下内容的选项:“导出环境变量”。最后,您应该能够在 cmd 上简单地运行“pip install some_lib”。试试看会发生什么。
-
它不会改变我通常使用 pip install 的任何东西,但我之所以使用它是因为这是他们说要在 numpy 网站上使用的命令
-
无论如何它都会给出同样的错误
标签: python-3.x pip