python 安装module

https://pypi.python.org/pypi/pip#downloads 下载pip包pip-8.1.2.tar.gz,并解压
python setup.py install
– 其他的module也可以安装上面的方法安装
python pip install matplotlib

pipy国内镜像目前有:

  http://pypi.douban.com/ 豆瓣

  http://pypi.hustunique.com/ 华中理工大学

  http://pypi.sdutlinux.org/ 山东理工大学

  http://pypi.mirrors.ustc.edu.cn/ 中国科学技术大学

http://pypi.v2ex.com/simple/
http://pypi.douban.com/simple/
http://mirrors.aliyun.com/pypi/simple/
手动指定源:

在pip后面跟-i 来指定源,比如用豆瓣的源来安装web.py框架:

pip install web.py -i http://pypi.douban.com/simple

python pip install matplotlib -i http://pypi.douban.com/simple

python pip install matplotlib -i http://mirrors.aliyun.com/pypi/simple/

你可能感兴趣的:(maintain)