【发布时间】:2017-05-16 17:41:10
【问题描述】:
我正在尝试使用 pip install numpy 在 Windows 8.1 中安装 numpy。
它给出以下错误:
Collecting numpy
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio
n failed: 407 Proxy Authentication Required',))': /simple/numpy/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio
n failed: 407 Proxy Authentication Required',))': /simple/numpy/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio
n failed: 407 Proxy Authentication Required',))': /simple/numpy/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio
n failed: 407 Proxy Authentication Required',))': /simple/numpy/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio
n failed: 407 Proxy Authentication Required',))': /simple/numpy/
Could not find a version that satisfies the requirement numpy (from versions:
)
No matching distribution found for numpy
引用this 后,我在cmd 中运行以下命令:
set proxy proxy-server="http=202.141.80.19:3128;https=202.141.80.19:3128"
出于身份验证的目的,我也尝试过:
set proxy proxy-server="http=username:password@202.141.80.19:3128;https=username:password@202.141.80.19:3128"
但它不起作用。
如何摆脱这个错误?
【问题讨论】:
-
netsh与cmd不同。您链接到的文档适用于netsh。此外,numpy 可能不使用 WinHTTP。
标签: python windows numpy proxy