Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to install 'requests module' using easy_install but I'm getting the following error:

$ sudo easy_install requests
Processing requests
error: Not a recognized archive type: requests

If I try with pip, I get the following error:

$ pip install requests
Unknown or unsupported command 'install'
share|improve this question
    
sudo easy_install requests –  Kummi_10 Sep 23 '13 at 7:52
    
try "pip install requests" –  Python Student Sep 23 '13 at 7:56
    
install is a valid pip command, so something is very wrong. What version of Ubuntu are you using? How did you install pip? What does pip --version say? –  Timo Sep 23 '13 at 9:26
    
sudo apt-get install pip and pip v5.10.0 –  Kummi_10 Sep 23 '13 at 9:36
1  
@Kummi_10: impossible. At this time, the latest version is 1.4.1 and 1.3.1 is shipped with the latest Ubuntu. –  Timo Sep 25 '13 at 9:51

1 Answer 1

up vote 0 down vote accepted

I just ran the same commands as you, and didn't produce the same error.

$ sudo easy_install requests
Searching for requests
Reading http://pypi.python.org/simple/requests/
Best match: requests 2.0.0
Downloading https://pypi.python.org/packages/source/r/requests/requests-2.0.0.tar.gz#md5=856fc825c17483e25fd55db115028e3f
Processing requests-2.0.0.tar.gz
Writing /tmp/easy_install-8vDXEw/requests-2.0.0/setup.cfg
Running requests-2.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-8vDXEw/requests-2.0.0/egg-dist-tmp-HTUm16
Adding requests 2.0.0 to easy-install.pth file

Installed /usr/local/lib/python2.7/dist-packages/requests-2.0.0-py2.7.egg
Processing dependencies for requests
Finished processing dependencies for requests

$ pip install requests
Requirement already satisfied (use --upgrade to upgrade): requests in /usr/local/lib/python2.7/dist-packages/requests-2.0.0-py2.7.egg
Cleaning up...

I will have to check what the log says, but as you see pip works just fine. You may need to reinstall pip:

sudo apt-get --purge autoremove pip
sudo apt-get install pip
share|improve this answer
    
It installs just fine here, you're giving pip the wrong package name. It's requests. It's also a different error than the question, which have nothing to do with each other. –  Timo Sep 25 '13 at 9:53
    
Thank you.... :) –  Kummi_10 Sep 25 '13 at 9:57
    
@Timo thanks, for the missing s but either way it installs correctly. –  Braiam Sep 25 '13 at 12:18

Your Answer

 
discard

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.