在~/.pip/pip.conf文件中添加或修改
mkdir ~/.pip
[global] index-url = http://mirrors.aliyun.com/pypi/simple/ [install] trusted-host=mirrors.aliyun.com