Skip to content

Instantly share code, notes, and snippets.

@nepsilon
Last active June 18, 2020 21:10
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save nepsilon/88a9593c0ec11eea5ddff760dd874920 to your computer and use it in GitHub Desktop.
Save nepsilon/88a9593c0ec11eea5ddff760dd874920 to your computer and use it in GitHub Desktop.
Use another mirror when PyPI go down — First published in fullweb.io issue #52

Use another mirror when PyPI go down

Find a mirror geographically close to you and use it like this:

pip install -i https://[mirror-url]/simple package

For instance, using a Beijing mirror:

pip install -i https://pypi.douban.com/simple package

You can also save this config in your ~/.pip/pip.conf:

[global]
index-url = https://pypi.douban.com/simple
@faisal95bd
Copy link

Thanks!

@MShafquat
Copy link

What is this?! Any solution?
image

@nepsilon
Copy link
Author

@MShafquat looks like the site is not working anymore. Its related project isn't maintained. I updated the gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment