[python2.6]关于import第三方库问题
按说明安装了Httplib2一个第三方的开源库,自动安装后的路径位于Python26的安装目录下的Lib\site-packages\
按照开发者的Examples
新建test.py 保存在"我的文档" ->python
import httplib2url="http://forum.csdn.net/Rss/OL_Script/EssentialList/"h = httplib2.Http(".cache")response, content = h.request(url,"GET")print content> "E:\Python26\pythonw.exe" "C:\Documents and Settings\Administrator\My Documents\python\httplib2.py" Traceback (most recent call last): File "C:\Documents and Settings\Administrator\My Documents\python\httplib2.py", line 2, in <module> import httplib2 File "C:\Documents and Settings\Administrator\My Documents\python\httplib2.py", line 4, in <module> h = httplib2.Http(".cache")AttributeError: 'module' object has no attribute 'Http'