【问题标题】:407 Proxy Authentication Required in Windows 8.1Windows 8.1 中需要 407 代理身份验证
【发布时间】: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" 

但它不起作用。

如何摆脱这个错误?

【问题讨论】:

  • netshcmd 不同。您链接到的文档适用于 netsh。此外,numpy 可能不使用 WinHTTP。

标签: python windows numpy proxy


【解决方案1】:

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

set HTTP_PROXY=http://proxy_userid:proxy_password@proxy_ip:proxy_port
set HTTPS_PROXY=http://proxy_userid:proxy_password@proxy_ip:proxy_port

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多