国外的pip源下载速度过慢,可以换成国内的源,这里换成豆瓣的源。
新建一个文件vim ~/.pip/pip.conf
内容为
[global]timeout = 6000index-url= http://pypi.douban.com/simple[install]trusted-host = pypi.douban.com
下载速度就快多了。