pipy国内镜像目前有:linux
http://pypi.hustunique.com/ 华中理工大学server
http://pypi.sdutlinux.org/ 山东理工大学ip
http://pypi.mirrors.ustc.edu.cn/ 中国科学技术大学get
对于pip这种在线安装的方式来讲,很方便,但网络不稳定的话很要命。使用国内镜像相对好一些,pip
若是想手动指定源,能够在pip后面跟-i 来指定源,注意后面要有/simple目录!!!rust
pip install -i http://pypi.douban.com/simple/ caravel==0.9.1im
有些server须要先将源站点加入信任hosts, 使用示例以下:技术
pip install --trusted-host pypi.douban.com -i http://pypi.douban.com/simple/ caravel==0.9.1hosts