Can't Deploy Flask Application to AWS Elastic Beanstalk [duplicate]

Solution 1:

For Amazon linux 2 you should be able to install it with yum. Thus, you can have in your .ebextensions a file called, e.g. 01_packages.config with the content:

packages: 
    yum:
        MySQL-python: []

You can add further yum dependencies if you require more.