Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
python-m pip安装-U pip Errno 11004_Python_Python 3.x_Pip - Fatal编程技术网

python-m pip安装-U pip Errno 11004

python-m pip安装-U pip Errno 11004,python,python-3.x,pip,Python,Python 3.x,Pip,我正在尝试更新pip,但不断收到以下消息: H:\>python -m pip install -U pip Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.con nection.VerifiedHTTPSConnection

我正在尝试更新pip,但不断收到以下消息:

H:\>python -m pip install -U pip
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.con
nection.VerifiedHTTPSConnection object at 0x031AF3B0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/pip/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.con
nection.VerifiedHTTPSConnection object at 0x031AF3D0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/pip/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.con
nection.VerifiedHTTPSConnection object at 0x031AF110>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/pip/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.con
nection.VerifiedHTTPSConnection object at 0x031AF0B0>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/pip/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.con
nection.VerifiedHTTPSConnection object at 0x031AF170>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',)': /simple/pip/
Requirement already up-to-date: pip in c:\users\a256886\appdata\local\programs\python\python36-32\lib\site-packages
H:\>python-m pip安装-U pip
“NewConnectionError(':未能建立新连接:[Errno 11004]getaddrinfo Failed',)”:/simple/pip)断开连接后重试(重试(总计=4,连接=None,读取=None,重定向=None))/
“NewConnectionError(':未能建立新连接:[Errno 11004]getaddrinfo Failed',)”中断连接后重试(重试(总计=3,连接=None,读取=None,重定向=None)):/simple/pip/
“NewConnectionError(':未能建立新连接:[Errno 11004]getaddrinfo Failed',)”断开连接后重试(重试(总计=2,连接=None,读取=None,重定向=None)):/simple/pip/
“NewConnectionError(':未能建立新连接:[Errno 11004]getaddrinfo Failed',)”断开连接后重试(重试(总计=1,连接=None,读取=None,重定向=None)):/simple/pip/
“NewConnectionError(':未能建立新连接:[Errno 11004]getaddrinfo Failed',)”:/simple/pip)断开连接后重试(重试(总计=0,连接=None,读取=None,重定向=None))/
要求已更新:c:\users\a256886\appdata\local\programs\python\python36-32\lib\site包中的pip
我已经安装了Python3.6.1,当我运行pip——版本时,我看到了PIP9.0.1


为什么我不能更新它?或者使用pip安装任何软件包?发生了什么事?我怎样才能修好它

您在代理后面。正如您所发现的,您可以使用
--proxy
参数将代理传递给
pip

python -m pip install -U pip --proxy http://username:password@proxy_url:port


这里的文档很混乱,因为它没有提到作为代理定义的一部分传递协议的要求。

对于迟来的回答表示歉意,但是


在我的例子中,我使用了一个网络过滤工具(Little Snitch)来保护安全,它专门阻止来自终端会话/pip的传出连接。

9.0.1是pip的最新版本。你为什么要更新它?@jwodder我想安装django。我设法创建了一个虚拟环境,但当我尝试安装django
pip install django~=1.10.0
时,我收到了相同类型的错误,但是:
找不到满足django~=1.10.0要求的版本(从版本:)没有找到django~=1.10.0的匹配发行版
@G.Doe:您是否有代理?@DavidCullen这可能是问题所在吗?我正试图在我的工作电脑上安装它。我能修好吗?我修好了!将http://添加到--proxy命令用户名之前:password@proxy_url当前位置在浏览了所有的答案之后,我想我可以坚定地说,我不是在支持一个代理人。是否还有其他原因会导致此错误?
pip install --upgrade pip --proxy http://username:password@proxy_url:port