我通过下面走:Python:如何正确设置boto3并连接到AWS S3?
http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html https://boto3.readthedocs.io/en/latest/guide/quickstart.html#installation
,并使用IDE与文件(pract.py)想出了:
import boto3
# Let's use Amazon S3
s3 = boto3.resource('s3')
for bucket in s3.buckets.all():
print(bucket.name)
并运行它,但遇到下列错误来了即使我安装了boto3:
ImportError: No module named boto3
我该如何c确认一切已经正确安装和配置?可能是什么问题?
谢谢你提前一定会接受/给予好评回答
当我做点子安装boto3
您可以在运行'pip install boto3'时发布STDOUT吗? – Jared
@Jared请看看截图 –
的原始文章您是否正在IDE内运行脚本?或者在命令行? – garnaat