2017-05-16 40 views
0

我试图用pip install numpy安装在Windows 8.1 numpy407需要代理身份验证在Windows 8.1

它提供了以下错误:

set proxy proxy-server="http=202.141.80.19:3128;https=202.141.80.19:3128" 

对于身份验证目的,我也尝试:

set proxy proxy-server="http=username:[email protected]:3128;https=username:[email protected]:3128" 

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以下命令后不工作。

我该如何摆脱这个错误?

+0

'netsh'与'cmd'不是一回事。你链接到的文档是'netsh'。此外,numpy可能不使用WinHTTP。 –

回答

1

经过多次尝试,这帮助我继续我的工作。

set HTTP_PROXY=http://proxy_userid:[email protected]_ip:proxy_port 
set HTTPS_PROXY=http://proxy_userid:[email protected]_ip:proxy_port 
相关问题