- pip source
Find it from the official website: https://mirrors.tuna.tsinghua.edu.cn
https://pypi.tuna.tsinghua.edu.cn/simple
- pip-settings
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
- pip upgrade
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U
- pip mirror source configuration file
vim ~/.pip/pip.conf
add the following content
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
-
view git source
pip config list
-
Manually download the pytorch installation package address
https://download.pytorch.org/whl/cu$(CUDA_VERSION_WITHOUT_DOT)/torch_stable.html
-
Modify the source download library
pip install --user -i https://pypi.tuna.tsinghua.edu.cn/simple pyarrow