python: boto3 _send_request() 错误

标签 python amazon-web-services boto3

我想在 docker 中使用 boto3,但是这个错误:TypeError: _send_request() takes 5 positional arguments but 6 were given 总是回应我。例如:

走出码头:

import boto3
s3 = boto3.resource('s3')
for bucket in s3.buckets.all():
    print(bucket.name)

一切正常,但在 docker python 解释器中,它给了我错误。

有什么想法吗?谢谢!

最佳答案

您可以升级您的 boto3 并修复它: pip install --upgrade boto3

关于python: boto3 _send_request() 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40665461/

相关文章:

python - Pandas DataFrame 中的字典嵌套列表

python - Pandas :DataFrame.sum() 或 DataFrame().as_matrix.sum()

amazon-web-services - 将Docker容器放入AWS EC2实例的动机

python - boto3 S3 : get_object error handling

python - 将 RGB 颜色转换为 RGBA 的 Plotly 函数? (Python)

Python Lambda没有找到这样的文件或目录运行时问题

amazon-web-services - 使用 serverless.yml 编辑 AWS Cognito 身份池

amazon-web-services - 如何在!Sub 中使用!FindInMap |用户数据部分

python - 使用 boto3 列出主帐户中子帐户的资源?

python - 使用boto3在python中自动填充DynamoDB中的时间戳