python pip设置代理
2016-10-25 16:43
936 查看
python 安装 urllib2 库时,
pip install urllib2 报错如下,
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio
n failed: 407 Proxy Authentication Required ( Forefront TMG requires authorizati
on to fulfill the request. Access to the Web Proxy filter is denied. )',))': /s
imple/webscraping/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio
n failed: 407 Proxy Authentication Required ( Forefront TMG requires authorizati
on to fulfill the request. Access to the Web Proxy filter is denied. )',))': /s
imple/webscraping/
Could not find a version that satisfies the requirement webscraping (from vers
ions: )
No matching distribution found for webscraping
需设置代理,
执行如下命令即可,
set HTTP_PROXY=icccuat\user_name:password@proxy_ip:port
set HTTPS_PROXY=icccuat\user_name:password@[b]proxy_ip:port
pip install urllib2[/b]
pip install urllib2 报错如下,
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio
n failed: 407 Proxy Authentication Required ( Forefront TMG requires authorizati
on to fulfill the request. Access to the Web Proxy filter is denied. )',))': /s
imple/webscraping/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec
tion broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connectio
n failed: 407 Proxy Authentication Required ( Forefront TMG requires authorizati
on to fulfill the request. Access to the Web Proxy filter is denied. )',))': /s
imple/webscraping/
Could not find a version that satisfies the requirement webscraping (from vers
ions: )
No matching distribution found for webscraping
需设置代理,
set HTTP_PROXY=domain\username:password@proxy:port set HTTPS_PROXY=domain\username:password@proxy:port[/code]
执行如下命令即可,
set HTTP_PROXY=icccuat\user_name:password@proxy_ip:port
set HTTPS_PROXY=icccuat\user_name:password@[b]proxy_ip:port
pip install urllib2[/b]
相关文章推荐
- python之第三方库安装方法pip(pip如何设置代理安装库)
- python 脚本自动切换windows代理设置
- python3操作注册表设置/取消IE代理
- Python设置Socket代理及实现远程摄像头控制的例子
- python urllib2 设置代理 自定义header
- 设置 git/npm/bower/pip/gem镜像或代理
- 10-穿墙代理的设置 | 01.数据抓取 | Python
- python 设置代理
- Python设置Socket代理及实现远程摄像头控制的例子
- python]用urllib2设置代理访问网页
- Python爬虫设置代理IP爬取知乎图片
- pip 代理设置,坑爹的代理继续
- 为python设置socket代理的方法
- 使用 PYTHON 为 PIP 搭建 HTTP 代理
- pip 设置代理的方法
- python3操作注册表设置/取消IE代理
- 当设置代理 运行python
- python模拟浏览器登陆淘宝(设置代理、输入验证码)
- Python 与设置代理的两三事
- 为wget、pip、git等命令【设置代理】