python pip install 失败原因之ProxyError('Cannot connect to proxy.
2017-04-10 09:26
7534 查看
最近遇到一个问题,pip install 无法下载安装,报错原因如下:
给出我的原因和解决方法:
我是用的switchOmega和xx-net 翻墙的,但是这个一旦设置,就是整个电脑通用也就是全局代理,然而pip install
无法和上面两个链接(黑人问号。),所以我就直接在xx-net的上边把全局代理关闭,结果就好了。
所以,出现上述问题不是连接超时的原因,是因为你的python pip 无法链接到proxy。如果不是按照我的这种方式翻墙的,
那么找到你自己的代理设置处,关闭全局代理即可(现在pip基本不用代理也能下载的)。
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken b y 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages. urllib3.connection.VerifiedHTTPSConnection object at 0x0000020BE03DF080>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。',))': /simple/qrcode/后来发现其实就是proxy设置错误。
给出我的原因和解决方法:
我是用的switchOmega和xx-net 翻墙的,但是这个一旦设置,就是整个电脑通用也就是全局代理,然而pip install
无法和上面两个链接(黑人问号。),所以我就直接在xx-net的上边把全局代理关闭,结果就好了。
所以,出现上述问题不是连接超时的原因,是因为你的python pip 无法链接到proxy。如果不是按照我的这种方式翻墙的,
那么找到你自己的代理设置处,关闭全局代理即可(现在pip基本不用代理也能下载的)。
相关文章推荐
- windows 安装python pip Could not install packages due to anEnvironmentError: [WinError 5] 拒绝访问
- 【Python错误】windows下使用pip/easy_install提示Fatal error in launcher: Unable to create process using...
- error: Unable to find vcvarsall.bat while install python library by pip install or python setup.py install.
- CentOS7上 pip install MySQL-python 安装失败(error: command 'gcc' failed with exit status 1)的解决办法
- python pip install报错error: Unable to find vcvarsall.bat
- 出现 HessianConnectionException: HessianProxy cannot connect to XXX 错误的原因及解决方法
- python windows环境下 pip install itchat 失败的原因
- 【Python错误】windows下使用pip/easy_install提示Fatal error in launcher: Unable to create process using...
- 【已解决】pip出错:Cannot connect to proxy
- ubuntu上Android项目首次运行失败,Error generating final archive: Failed to create key: Cannot run program
- 安装robotframewrok 的ssh库 pip install robotframework-sshlibrary 遇到 error: Unable to find vcvarsall.bat
- Zabbix-agent在Windows下安装报[8576]:ERROR:cannot connect to Service Manager:[0x00000005]错误的解决
- python2.7.6 , setuptools pip install, 报错:UnicodeDecodeError:'ascii' codec can't decode byte
- A configuration error occurred during startup. Please verify the preference field with the prompt: Cannot connect to vm
- 运行python manage.py syncdb时出现“cannot connect to MySQL server on 'localhost'”的解决方法
- Cannot connect to the vCenter server due to a certificate error. Make sure that the appropriate cert
- Error staring Tomcat Cannot connect to VM错误解决办法
- Pip install: ImportError: cannot import name IncompleteRead
- Error message when you try to use the Live Meeting console to connect to Communications Server 2007: "Live Meeting cannot connect to the meeting."
- Chrome 浏览器安装 遇到 ssl error Chrome says Cannot connect to the real www.google.com