這裏是我的簡單的代碼:要連接到dynamoDB,得到AttributeError的: '模塊' 對象有沒有屬性 'connect_to_region'
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'
哪個'boto'版本您使用的? ('boto .__ version__') – alecxe
感謝您的迴應。它是:2.2.2 – user3473556