# 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