Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python: Httplib2 Module Not Found

I tried to import the module but i am getting the error shown below:-

sh-3.2# python -V
Python 2.6.4
sh-3.2# python -c "import httplib2"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named httplib2

How to fix this Error?

like image 382
asdasdsad Avatar asked Dec 10 '09 17:12

asdasdsad


3 Answers

httplib2 is not part of the Python standard library. It's an external package you must install yourself.

using pip:

pip install httplib2
like image 62
Corey Goldberg Avatar answered Oct 18 '22 02:10

Corey Goldberg


You need to install the httplib2 package from your package manager.

On Ubuntu: sudo apt-get install python-httplib2

like image 16
ccheneson Avatar answered Oct 18 '22 02:10

ccheneson


I suppose you could start by installing httplib2.

like image 10
Jonathan Feinberg Avatar answered Oct 18 '22 00:10

Jonathan Feinberg