1. 程式人生 > >Tunnel connection failed: 407 Proxy Authentication Required

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:[email protected]:port

tips:對於密碼中的特殊字元需要轉義,比如@ 變為%40

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