AWS Elastic Beanstalk error – ImportError: No module named flask.ext.sqlalchemy


I deployed my flask application into aws beanstalk and ran into an import error:

In my file, I have this statement

and it runs fine on my machine but does not work in aws elastic beanstalk.

Anyone ran into a similar issue?


Make sure you have included a requirements.txt file in root directory of your project.

The file should include any pip package that needs to be installed

Leave a Reply