可以通过国内开源镜像来下载python的库,操作步骤如下:

1
2
mkdir ~/.pip
vim ~/.pip/pip.conf

pip.conf内容如下:

1
2
[global]
index-url = https://pypi.mirrors.ustc.edu.cn/simple