Skip to content


Subversion checkout URL

You can clone with
Download ZIP


pip should check a PyPI mirrors' last-modified-date before using it #503

kencochrane opened this Issue · 2 comments

3 participants


Right now there is an issue with 3 out of the 6 PyPI mirrors being out of date. I have submitted a ticket with PyPI to get them back up to date, but it brings up a good point. Pip should look at the last-modified-date of each mirror and if the date is too old, not use it as a valid mirror.

More information about the PyPI mirrors last modified date can be found here.

I was thinking about writing a patch for this, but I wasn't sure where to start. It would seem like a waste of time to have to check the last-modified-date of each mirror for every install. It would be nice to check only once a day, but I'm not sure how to store the state for this information between installs.

Here is my ticket to get the PyPI mirrors up to date:


Thanks for the report. We know pip's current mirror-selection is inadequate - we have an in-progress branch that uses a more sophisticated algorithm, taking into account the last-modified date, along with some other changes (like SSL and certificate checking). That branch is at but still needs significant work.


Closing this issue because #1098 removed the direct mirroring support found in pip.

@dstufft dstufft closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.