Skip to content

Instantly share code, notes, and snippets.

@alexisrolland
Last active December 24, 2020 02:09
Show Gist options
  • Save alexisrolland/cf9ad2640b44be502ec6115e7badfbcb to your computer and use it in GitHub Desktop.
Save alexisrolland/cf9ad2640b44be502ec6115e7badfbcb to your computer and use it in GitHub Desktop.
Commands used to update pip mirrors to use one located in China. Commands below were tested in a Docker container built with image python:3.6.6-slim-stretch.
# Found on https://mirrors.ustc.edu.cn/help/pypi.html
pip install -i https://mirrors.ustc.edu.cn/pypi/web/simple pip -U
pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment