Boto3和AWS CLI不兼容问题

时间:2019-06-04 14:26:27

标签: boto3 aws-cli botocore

我在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.

我正在寻找解决方法。

谢谢。

3 个答案:

答案 0 :(得分:0)

能否请您尝试使用以下命令来升级awscli及其模块。

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

答案 1 :(得分:0)

以下命令对我有用,因为它升级了环境中的所有软件包

conda upgrade --all -y

答案 2 :(得分:0)

只需卸载并重新安装所有冲突的库,以便 pip 挑选出正确的版本:

例如,如果您在 botocores3transferboto3 之间存在冲突,请执行以下操作:

pip3 uninstall botocore, s3transfer, boto3
pip3 install botocore, s3transfer, boto3

不要忘记相应地更新您的requirements.txt,以备下次需要安装库时使用。

pip3 freeze > requirements.txt
相关问题