Boto3 和 AWS CLI 不兼容问题

Cod*_*tan 5 aws-cli botocore boto3

我在 MAC 上执行命令pip3 install awscli --upgrade --user并得到以下信息:

boto3 1.8.8 has requirement botocore<1.12.0,>=1.11.8, but you'll have botocore 1.12.160 which is incompatible.
boto3 1.8.8 has requirement s3transfer<0.2.0,>=0.1.10, but you'll have s3transfer 0.2.0 which is incompatible.
Run Code Online (Sandbox Code Playgroud)

我正在寻找解决方法。

提前致谢。

Kc *_*key 1

您可以尝试以下命令来升级 awscli 及其模块吗?

sudo pip install awscli --force-reinstall --upgrade