这是我的简单代码:
import boto.dynamodb
conn = boto.dynamodb.connect_to_region(
'us-east-1',
aws_access_key_id='....',
aws_secret_access_key='....')
print conn
我得到:
Traceback (most recent call last):
File "startMarch28.py", line 5, in <module>
conn = boto.dynamodb.connect_to_region(
AttributeError: 'module' object has no attribute 'connect_to_region'
connect_to_region()
版本中的boto.dynamodb
没有boto==2.2.2
功能。
将模块升级到最新(
2.27.0
)版本:
pip install boto --upgrade