【发布时间】:2018-03-19 09:40:34
【问题描述】:
我正在尝试在公司防火墙后面使用 Python 3.7 和 PIP(在 Windows 7 上),但出现以下错误:
Retrying (Retry(total=4, connect=None, read=None, redirect=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/pywin32/
我尝试了以下配置来传递代理访问,但其中任何一个都不起作用:(
set HTTP_PROXY=http://DOMAIN\user:pass@proxyhost:port
set HTTP_PROXY=http://user:pass@proxyhost:port
set HTTP_PROXY=http://proxyhost:port
【问题讨论】:
-
很可能是公司防火墙阻止了 PIP,您无法自行修复(过去曾多次发生在我身上)。您需要获得 pip install 的许可才能安装您想要安装的任何东西。
标签: python windows python-3.x proxy pip