在用pip安装numpy时由于各种原因,导致网速过慢,时间太长,总是报出这样那样的错误,安装不成功,于是通过各种途径,找个国内的镜像源,可以快速的下载需要的工具包。
举例如下(此处用的是豆瓣):
pip install matplotlib -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install numpy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install pandas -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip install seaborn scipy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
换源后,再下载numpy基本速度1M左右,几秒就能OK!!!