Search code examples
djangoamazon-web-servicesamazon-elastic-beanstalkboto3

AWS Boto3 Compatibility Issue, How can I install an older version of Boto3?


I'm trying to deploy my Django project to AWS Elastic Beanstalk.
The tutorial I am following is suggesting I use Boto3 to link up my S3 Database.

The problem is when I am installing Boto3 i am getting this message in red.

awsebcli 3.20.3 requires botocore<1.24.0,>1.23.41, but you have botocore 1.27.7 which is incompatible.

So I'm trying to install the older version of Botocore, 1.24.0 or 1.23.41, but after looking at PyPi I can't seem to find it since it just says use pip3 install boto3.

Any suggestions?


Solution

  • I had the same problem: If you already installed boto3 then do these:

    1. pip uninstall boto3
    2. pip uninstall botocore
    3. pip uninstall s3transfer

    then do these:

    1. pip install botocore==1.23.54
    2. pip install boto3==1.20.54

    Hope this helps!