PIP不起作用-代理-连接异常终止 [英] PIP not working - proxy - Connection aborted

查看:373
本文介绍了PIP不起作用-代理-连接异常终止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在代理后面安装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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆