Skip to content

Instantly share code, notes, and snippets.

@wa008
Last active July 2, 2025 03:58
Show Gist options
  • Save wa008/f539d7403c4be6691b3ecbf73ae86b44 to your computer and use it in GitHub Desktop.
Save wa008/f539d7403c4be6691b3ecbf73ae86b44 to your computer and use it in GitHub Desktop.
pip config
# 1. check path of pip config
# command: python3 -m pip config debug
# output: /root/.config/pip/pip.conf
# 2. replace below code into your pip config
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
extra-index-url= https://pypi.tuna.tsinghua.edu.cn/simple
https://mirrors.sustech.edu.cn/pypi/web/simple
[install]
trusted-host = repo.metax-tech.com
mirrors.aliyun.com
pypi.tuna.tsinghua.edu.cn
mirrors.sustech.edu.cn
download.pytorch.org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment