mkdir -p ~/.pip
vim ~/.pip/pip.conf

编辑内容:
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host = mirrors.aliyun.com

保存,再次执行安装命令