修改pip配置文件
修改~/.pip/pip.conf,如果不存在则新建该文件
#新建文件目录
mkdir ~/.pip
#添加或修改配置文件
vim ~/.pip/pip.conf
在配置文件中添加以下内容
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
修改~/.pip/pip.conf,如果不存在则新建该文件
#新建文件目录
mkdir ~/.pip
#添加或修改配置文件
vim ~/.pip/pip.conf
在配置文件中添加以下内容
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com
本文标题:PIP设置阿里云源
本文链接:https://www.haomeiwen.com/subject/qnqwjhtx.html
网友评论