当我尝试运行以下代码时,我正在学习如何将 boto 模块与 python 和 AWS 一起使用:
import boto.ses
conn = boto.ses.connect_to_region("us-west-2")
我不断收到以下错误:
Traceback (most recent call last):
File "D:/Document/PycharmProjects/Boto/boto_ses.py", line 4, in <module>
conn = boto.ses.connect_to_region("us-west-2")
AttributeError: 'module' object has no attribute 'connect_to_region'
我订阅了 AWS 服务,我使用 pycharm 作为 IDE,并且正确配置了 boto.cfg 文件