PyPI may be unreliable. I had an unsuccessful number of Travis-CI builds because pip was unable to install one of my requirements (lxml is the most famous culprit).
Various online resources recommend the --use-mirrors flag, which still solved the problem for me. However --use-mirrors deprecated for a number of good reasons.
Unfortunately, as mentioned in the link, one of the main reasons for removing the flag is that the new supported PyPI CDN should not have the same problems. It does. I still have problems with my builds, and I still canโt install packages reliably with pip unless I use --use-mirrors .
release notes for version 1.5 on 2014-01-01 recommend using one of the -i , -index-url or --extra-index-url flags. Which is great, with the exception of ... We face some of the same problems that --use-mirrors , namely, that these mirrors cannot necessarily be trusted.
The PyPI mirror list has actually been deleted, leaving us with unofficial mirrors . Thus, I have a choice: continue to use --use-mirrors and hope that one of the above problems is fixed before it is removed, or select a mirror and hope that it works and is trustworthy.
Is there a generally accepted and reliable mirror? Or a widespread and reliable alternative? Basically, how do I solve this problem?
source share