Python: Httplib2 Module Not Found

不打扰是莪最后的温柔 提交于 2019-11-29 01:22:00

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

using pip:

pip install httplib2

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

On Ubuntu: sudo apt-get install python-httplib2

I suppose you could start by installing httplib2.

Download it?

Make sure it's on your PYTHONPATH

Suppose you can start by installing it like :

$ pip install httplib2

you can try the same thing with easy install too, or if you wanted to install in locally and not over the network then go to httplib2 github . Clone/download it to your computer. Now go to the downloaded httplib2 folder location and run the setup.py like this :

$ setup.py install

If on windows, make sure you have successfully installed python first and have set the environment variables path successfully.

This is a common command to install any module using pip or by locally downloading and looking for the foldert location>setup.py file and trying the second command mentioned above.

FOR WINDOWS:

if python is installed & set as environment variable

python -m pip install httplib2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!