命令如下:
mkdir -p ~/.pip/ touch pip.conf vim pip.conf
pip.conf编辑内容
[global] index-url=http://mirrors.aliyun.com/pypi/simple/ [install] trusted-host=mirrors.aliyun.com
[install] trusted-host=mirrors.aliyun.com