Codistan
Codistan

Reputation: 1519

Boto3 and AWS CLI incompatibility issue

I executed command pip3 install awscli --upgrade --user on my MAC and got the following:

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.

I'm looking for a work around.

Thanks in advance.

Upvotes: 5

Views: 11227

Answers (4)

St&#233;phane Bruckert
St&#233;phane Bruckert

Reputation: 22903

Just uninstall and reinstall all of the conflicting libraries together, so that pip sorts out the right versions:

For example if you have conflicts between botocore, s3transfer and boto3, just do:

pip3 uninstall botocore s3transfer boto3
pip3 install botocore s3transfer boto3

Don't forget to update your requirements.txt accordingly for next time libraries need to be installed.

pip3 freeze > requirements.txt

Upvotes: 4

Sincole Brans
Sincole Brans

Reputation: 304

The following command worked for me as it upgrades all the packages within the environment

conda upgrade --all -y

Upvotes: 0

0x4a6f4672
0x4a6f4672

Reputation: 28245

Older versions of the boto3 Python package are not compatible to awscli. I ran into the same problem because I had an old boto3 version 1.10.27 installed

$ pip list | grep -E "boto3|aws"
awscli  1.17.5      
boto3   1.10.27 

The latest version of boto3 is at the moment version 1.11.5 https://pypi.org/project/boto3/ . After installing version 1.11.5 the error went away

$ pip uninstall boto3
$ pip install boto3==1.11.5

Upvotes: 1

Kc Bickey
Kc Bickey

Reputation: 1286

Can you please try the following command to upgrade awscli and its modules.

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

Upvotes: 1

Related Questions