# 创建.pip目录
mkdir ~/.pip
cd ~/.pip
# 创建pip.conf文件
touch pip.conf
# 编辑该文件
vim pip.conf
# 设置阿里源
[global]
trusted-host = mirrors.aliyun.com
index-url = https://mirrors.aliyun.com/pypi/simple
# 创建.pip目录
mkdir ~/.pip
cd ~/.pip
# 创建pip.conf文件
touch pip.conf
# 编辑该文件
vim pip.conf
# 设置阿里源
[global]
trusted-host = mirrors.aliyun.com
index-url = https://mirrors.aliyun.com/pypi/simple