我已经安装了 boto3
但它仍然给出没有名为 botocore.session 的模块的错误
import botocore.session
ImportError: No module named botocore.session
原文由 Vidip 发布,翻译遵循 CC BY-SA 4.0 许可协议
2 回答5.1k 阅读✓ 已解决
2 回答1.1k 阅读✓ 已解决
4 回答993 阅读✓ 已解决
3 回答1.1k 阅读✓ 已解决
3 回答1.2k 阅读✓ 已解决
1 回答1.7k 阅读✓ 已解决
1 回答1.2k 阅读✓ 已解决
import boto3
单独连接一个桶就足够了。botocore.session
在之前的 boto 1.8 中使用,不被 boto3 接受。您可以参考以下 boto3 文档 http://boto3.readthedocs.io/en/latest/reference/services/s3.html#client 。这是提到使用 botocore.session http://botocore.readthedocs.io/en/latest/tutorial/ 的 boto 1.8 文档