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

I am getting this error

ImportError: no module named request

To fix this:

sudo apt-get install request

works in Ubuntu. How do I fix this error in CentOS?

share|improve this question

migrated from Mar 19 '13 at 13:09

This question came from our site for professional and enthusiast programmers.

Just what request are you installing through apt-get? And what does works mean in this case? – George Stocker Mar 19 '13 at 12:29
up vote 3 down vote accepted

Install pip from source. Then try

pip install django-request
share|improve this answer
Yes it is perfect for ubuntu, but not for centos – Mathi Mar 19 '13 at 12:06
Why not? Any problems? – Matthias Mar 19 '13 at 12:41
when i am trying to install the package request in cent os, 'yum install request' is not installing the package. "Deprecation Error" occurs – Mathi Mar 20 '13 at 4:25
You need to install pip first and then install django-request using pip. – arulmr Mar 20 '13 at 4:34
Yes arul, whatever u are saying is perfect for other os, but giving error for cent os – Mathi Mar 20 '13 at 4:36
  1. yum install python-setuptools
  2. easy_install install pip
  3. pip install requests
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.