如何在Windows 7上使用Python 3和httplib2调用AWS?

Set*_*eth 6 ssl httplib2 amazon-web-services windows-7 python-3.x

我使用httplib2来调用Amazon Web Services(AWS):

http = httplib2.Http(cache='.cache')
response, content = http.request('https://sdb.amazonaws.com/...')
Run Code Online (Sandbox Code Playgroud)

但它没有找到CA(我认为):

File "C:\Python32\lib\site-packages\httplib2\__init__.py", line 1059, in request self.disable_ssl_certificate_validation)
File "C:\Python32\lib\site-packages\httplib2\__init__.py", line 772, in __init__ context.load_verify_locations(ca_certs)
IOError: [Errno 2] No such file or directory
Run Code Online (Sandbox Code Playgroud)

我的问题:

  1. 有什么我需要做的事情来配置我的操作系统和环境来实现这个目的吗?
  2. 我已经看过很多关于确保在Python 2中为SSL构建套接字库的帖子; 这适用于Python 3吗?

谢谢!

Set*_*eth 5

httplib2/Python3文件夹缺少cacerts.txt,因此不会将其复制到Python/lib文件夹中.我手动复制了文件,一切正常.这是httplib2的一个已知问题.