pip install *** 安装python包,出现Cannot fetch index base URL http://pypi.python.org/simple/错误提示或者直接安装不成功。
解决办法:
1.windows下创建/%user%/pip/pop.ini,并添加以下内容。
[global]
index-url=http://pypi.douban.com/simple/
2.linux创建文件~/.pip/pip.conf,并添加一下内容。
[global]
index-url=http://pypi.douban.com/simple/
3.再次使用pip安装相应的包即可。
pip安装使用官方的源无法安装问题解决:http://www.linuxdiyf.com/linux/17016.html
Ubuntu下apt-get与pip安装命令的区别:http://www.linuxdiyf.com/linux/13091.html
修复Ubuntu系列pip:http://www.linuxdiyf.com/linux/16854.html
CentOS安装pip:http://www.linuxdiyf.com/linux/16380.html
在CentOS下安装pip:http://www.linuxdiyf.com/linux/14302.html