mkdir ~/.pip cd ~/.pip touch pip.conf
输入以下内容:
[global] index-url = https://mirrors.aliyun.com/pypi/simple [install] trusted-host = https://mirrors.aliyun.com