pip 更换国内源

Docker系列文章

配置方法

a. 找到下列文件

~/.pip/pip.conf b. 在上述文件中添加或修改:

1
2
3
4
5
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host=mirrors.aliyun.com

新版pip配置方法

直接使用 pip config命令;

1
2
3

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip config set install.trusted-host mirrors.aliyun.com
使用 Hugo 构建
主题 StackJimmy 设计