Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

It returns soon for terms such as sqlite, virtualenv , etc, but why it failed for django query?

This failure has happened for more than 3 times

pip search django
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/pip/", line 107, in main
    status =, args)
  File "/usr/local/lib/python2.6/dist-packages/pip/commands/", line 34, in run
    pypi_hits =, index_url)
  File "/usr/local/lib/python2.6/dist-packages/pip/commands/", line 48, in search
    hits ={'name': query, 'summary': query}, 'or')
  File "/usr/lib/python2.6/", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/", line 1489, in __request
  File "/usr/lib/python2.6/", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.6/", line 1382, in _parse_response
    response =
  File "/usr/lib/python2.6/", line 377, in read
    data = self._sock.recv(left)
timeout: timed out
share|improve this question
See the last line. Internet connection is timing out. – Sathya Oct 16 '12 at 6:21
yes, but why pip search virtualenv is not timeout? – hugemeow Oct 16 '12 at 8:41
Reopened because I can reproduce this behavior, at least the search takes way more time than for other packages. Why this is, I don't know. – slhck Oct 16 '12 at 15:39

There are many Python packages that have 'django' in their name so pypi fails to return all data in time. You could increase the timeout using --timeout option (default is 15 seconds).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.