Gangmax Blog

Set "pip" Mirror

From here.

1
2
pip install --upgrade pip --index-url https://mirrors.sustech.edu.cn/pypi/web/simple
pip config set global.index-url https://mirrors.sustech.edu.cn/pypi/web/simple

The second command creates a “~/.config/pip/pip.conf” file with the following content, which will be read by pip when running.

1
2
[global]
index-url = https://mirrors.sustech.edu.cn/pypi/web/simple

Comments