# 创建.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
gcxblogs 2021-04-17 09:40 原文
# 创建.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