1、首先下载httplib2 0.9.2,下载地址:
https://pypi.python.org/pypi/httplib2/#downloads
2、然后解压到Python27的安装目录下,将下载的httplib2 0.9.2解压后的文件夹名字修改为httplib
3、通过dos命令进入cmd
C:\Users\Administrator>cd:d\Python27\httplib C:\Users\Administrator>d: d:\Python27\httplib>python setup.py install python不是内部命令
出现错误,因为Python没有设置环境变量
;D:\Python27\;D:\Python27\Scripts
验证Python是否设置了环境变量
C:\Users\Administrator>python Python 2.7.5... >>>
4、重新安装httplib
C:\Users\Administrator>cd:d\Python27\httplib C:\Users\Administrator>d: d:\Python27\httplib>python setup.py install running install ... d:\Python27\httplib>