[英]Including httplib2
As the link you posted to states httplib2 is not a standard library that comes with Python you have to install it first. 由于您发布到httplib2状态的链接不是Python附带的标准库,您必须先安装它。
To install httplib2 in Python 3 you can use (Ubuntu): 要在Python 3中安装httplib2 ,您可以使用(Ubuntu):
sudo apt-get install python3-httplib2
or pip 或者
pip install httplib2
Other instructions for direct download here: http://code.google.com/p/httplib2/wiki/Install 其他直接下载说明: http : //code.google.com/p/httplib2/wiki/Install
Then make sure it's on your PYTHONPATH. 然后确保它在你的PYTHONPATH上。
Then just include it: 然后只包括它:
import httplib
$ sudo pip3 install httplib2
import httplib2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.