Python: Httplib2 Module Not Found

asdasdsad picture asdasdsad · Dec 10, 2009 · Viewed 58.3k times · Source

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?

Answer

Corey Goldberg picture Corey Goldberg · Jun 24, 2011

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

using pip:

pip install httplib2