在用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!!!