标签:
作为 easy_install 的升级版,pip 为 Pyhton 的包管理提供了极大的方便。一行命令即可完成所需模块的安装:
pip install pandas
可是官方镜像的访问速度相当慢,几乎不可用。因此十分有必要修改镜像源来提升访问速度,
修改镜像源在不同操作系统中,修改文件的位置是不同的,
在linux默认的路径是$HOME/.pip/pip.conf在windows默认的路径是%HOME%\pip\pip.ini
默认路径下并不存在配置文件,需要新建,然后在配置文件中写入:
[global]index-url = http://pypi.mirrors.ustc.edu.cn/simple/
douban http://pypi.douban.com/simplePython官方 https://pypi.python.org/simplev2ex http://pypi.v2ex.com/simple清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
标签:
原文地址:http://www.cnblogs.com/meelo/p/4636340.html