PyPi Tsinghua source
Pypi mirror is synchronized every 5 minutes.
Temporary use
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
Temporary use official source
pip install -i https://pypi.Python.org/simple/
Set as default
Upgrade pip to the latest version (>=10.0.0)
pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
If the network connection to the default source of pip is poor, you can temporarily use this mirror station to upgrade pip:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U
Join the discussion