Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Finding python packages using tools such as pip or easy_install takes very long, up to ten minutes, on my local desktop running Ubuntu 12.10. The same procedures are lightning fast on my cloud servers.

Things ruled out:

  • The download of the package itself is fast enough
  • regular DNS lookups fast enough
  • when put a super-simple pypi mirror in between, with the 'simple pypi' interface, it is much faster.
  • the pip log does not show anything useful, just long listings of urls visited.
  • --use-mirrors doesn't help from mhausler's answer

Could it have something to do with the parsing of the listings?

I would be thankful for any tips on how to properly diagnose this, or what the problem could be.

share|improve this question
Its super fast for the last couple of days! not sure why ... but previously it was super slow and times out occasionally. Maybe they got into some money or something. – Pykler May 9 '13 at 17:51

The main pypi index may be down or having problems.

Try executing

pip install --use-mirrors

to automatically use backup mirrors.

See pip install --help for details.

share|improve this answer
This is a great tip for many users, but does not solve my problem. – Jasper van den Bosch Jan 23 '13 at 21:47
What if you configured it globally? That and other suggestions here. Pypi has been experiencing some hiccups again recently. – Tom Feb 8 '13 at 14:35
Yes, have tried several tiers of config; from pip.conf to commandline arguments. It works fine one some other machines, but all my config is the same (I keep it in version control) so it must be some package conflict or firewall issue or something. – Jasper van den Bosch May 9 '13 at 22:03

yes, the main pypi server is slow.

pickup another mirror server on, then

pip install django -i

replace the url with your fastest mirror.

also you can save the setting by using pip.conf, check for detail

share|improve this answer
+1 for the mirror list – Jasper van den Bosch Jul 15 '13 at 17:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .