class=”markdown_views prism-atom-one-light”>
Help on using pypi image
The pypi mirror is synced every 5 minutes.
Temporary use
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
Attention, simple must not be less, it is https instead of http
set as default
Upgrade pip to the latest version (>=10.0.0) to configure:
pip install pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
If you have a poor network connection to pip’s default source, temporarily use this mirror to upgrade pip:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U