1 Temporary use
Choose a way to enter in cmd, some-package
which is the library to be downloaded.
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
pip install some-package -i https://pypi.tuna.tsinghua.edu.cn/simple
2 permanent - modify pip
Modify the pip configuration by command, or you can directly modify it in pip.ini
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
Result:
The configuration is successful!