我尝试在公司防火墙后使用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
我的组织代理验证也有问题,在Windows操作系统中遇到了407个错误,最后用CTNLM解决了这个问题,因此,首先尝试为您的代理配置ctnlm并用浏览器测试它(配置位于%PROGRAMFILES%\Cntlm中)\cntlm.ini文件对于windows和默认代理应该类似于http://localhost:3128),如果有效,请将其交给pip install:
proxy http://localhost:3128
相关问题 更多 >
编程相关推荐