Tunnel connection failed: 407 Proxy Authentication Required

报错信息 :

Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 407 Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. )',))': /simple/jupyter/

  • 根据报错信息 Cannot connect to proxy判断应该是代理的错误,结合由于使用公司的电脑,所以配置一下代理的环境
set http_proxy=http://username:password@proxyservice:port

tips:对于密码中的特殊字符需要转义,比如@ 变为%40

eg set http_proxy=https://username:pass%[email protected]:1080

猜你喜欢

转载自www.cnblogs.com/Mr0wang/p/9907362.html