Python oauth2 - 没有属性'HTTPSConnection'

时间:2012-01-24 14:49:53

标签: python oauth oauth-2.0 python-2.7

Python初学者

>>> import oauth2
  

追踪(最近一次通话):     文件“”,第1行,在中     文件“/usr/local/lib/python2.7/site-packages/oauth2/init.py”,第32行,in       导入httplib2
    文件“/usr/local/lib/python2.7/site-packages/httplib2/init.py”,第801行,中
      class HTTPSConnectionWithTimeout(httplib.HTTPSConnection):
  AttributeError:'module'对象没有属性'HTTPSConnection'

我不明白错误
为什么我会这样做?

  • Ubuntu 10.04
  • python 2.7(从源代码构建)

1 个答案:

答案 0 :(得分:2)

httplib official docs上提及HTTPS support is only available if the socket module was compiled with SSL support