可以结合一下三篇文章得出:命令下 使用 pip install --proxy 不支持 --参数 写法,必须设置环境变量来安装
http://blog.csdn.net/dangerousroy/article/details/52924116
http://blog.csdn.net/hong19860320/article/details/6927417
https://stackoverflow.com/questions/37293573/pip-proxy-error-after-many-tries
1. 先设置环境变量:
set HTTP_PROXY=icccuat\user_name:password@proxy_ip:port
set HTTPS_PROXY=icccuat\user_name:password@proxy_ip:port
2.直接安装库:
pip install urllib2