2

我正在使用最新的本地堆栈和 docker。我正在尝试 ls s3:

$ aws s3 --endpoint='http://localhost:4572' ls

我得到以下结果:

astimezone() cannot be applied to a naive datetime

怎么了?

4

1 回答 1

1

使用与最新 python 兼容的 aws2。这为我解决了这个问题。

对于 Linux:

curl "https://d1vvhvl2y92vvt.cloudfront.net/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

对于 macOS:

curl "https://d1vvhvl2y92vvt.cloudfront.net/awscli-exe-macos.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
于 2019-12-19T15:55:20.397 回答