PIP不起作用-代理-连接异常终止 [英] PIP not working - proxy - Connection aborted
问题描述
我正在尝试在代理后面安装python软件包,但出现以下错误:
I am trying to install python packages behind a proxy and I get the following error:
pip --proxy="user:pass@address:port" install bokeh
在被'ProtocolError('Connection aborted.',BadStatusLine('',)))断开的连接断开后,重试(Retry(total = 4,connect = None,read = None,redirect = None)):/simple /bokeh/
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /simple/bokeh/
您认为出了什么问题?
What do you think is going wrong?
推荐答案
已解决 问题是我的宿舍防火墙阻止了pip(pypi.python.org).在工作时发出相同的命令可以正确安装python软件包.
SOLVED The issue was that my dorm firewall is blocking pip (pypi.python.org). Issuing the same command at work installs python packages correctly.
这篇关于PIP不起作用-代理-连接异常终止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!