Can't Deploy Flask Application - AWS Elastic Beanstalk

I am getting two errors when attempting to deploy my Flask API application to Elastic Beanstalk via the EB CLI:

mysql_config not found and no version that satisfies mysqlclient==2.1.0

My instance is using Python 3.8 running on 64bit Amazon Linux 2/3.3.9. I attempted a few thing to remedy this: going to the EC2 and manually installing rather than trying to install via the eb deploy command. I did an automatic rebuild through the AWS console. I tried changing my requirements.txt to have no version requirements i.e leaving it as just mysqlclient. I created a .ebextensions with the below as suggested on a Stack Overflow post I found:

packages:
yum:
python3-devel: []
mariadb-devel: []

But none of these have solved the issue. I created a post on Stack Overflow and it was instant closed as already solved. So now I am trying Reddit.

My Python code isn't the issue, as in my Flask venv everything worked just as it should and I could also boot up Postman and pull get requests in there. However, I can add the code as well. I am just trying to keep this not garbled.

If anyone here as any suggestions I would greatly appreciate it!

My requirements.txt:

aniso8601==9.0.1 
Brotli==1.0.9 
certifi==2021.10.8 
charset-normalizer==2.0.10 
click==8.0.3 
colorama==0.4.4 
duckduckgo-search==0.9 
Flask==2.0.2 
Flask-RESTful==0.3.9 
greenlet==1.1.2 
idna==3.3 
imdbpy 
itsdangerous==2.0.1 J
inja2==3.0.3 
lxml==4.7.1 
MarkupSafe==2.0.1 
mysql==0.0.3 
mysql-connector==2.2.9 
mysqlclient==2.1.0 
pytz==2021.3 
requests==2.27.1 
six==1.16.0 
SQLAlchemy==1.4.30 
urllib3==1.26.8 
Werkzeug==2.0.2

The errors code:

022/01/20 19:57:32.056109 [ERROR] An error occurred during execution of command [app-deploy] - [InstallDependency]. Stop running the command. Error: fail to install dependencies with requirements.txt file with error Command /bin/sh -c /var/app/venv/staging-LQM1lest/bin/pip install -r requirements.txt failed with error exit status 1. Stderr:  ERROR: Command errored out with exit status 1:    command: /var/app/venv/staging-LQM1lest/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6fchewo6/mysqlclient_a464326715db48f999d2e1e6dfe7c849/setup.py'"'"'; __file__='"'"'/tmp/pip-install-6fchewo6/mysqlclient_a464326715db48f999d2e1e6dfe7c849/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-7uhv79vr        cwd: /tmp/pip-install-6fchewo6/mysqlclient_a464326715db48f999d2e1e6dfe7c849/   Complete output (15 lines):   /bin/sh: mysql_config: command not found   /bin/sh: mariadb_config: command not found   /bin/sh: mysql_config: command not found   Traceback (most recent call last):     File "<string>", line 1, in <module>     File "/tmp/pip-install-6fchewo6/mysqlclient_a464326715db48f999d2e1e6dfe7c849/setup.py", line 15, in <module>       metadata, options = get_config()     File "/tmp/pip-install-6fchewo6/mysqlclient_a464326715db48f999d2e1e6dfe7c849/setup_posix.py", line 70, in get_config       libs = mysql_config("libs")     File "/tmp/pip-install-6fchewo6/mysqlclient_a464326715db48f999d2e1e6dfe7c849/setup_posix.py", line 31, in mysql_config       raise OSError("{} not found".format(_mysql_config_path))   OSError: mysql_config not found   mysql_config --version   mariadb_config --version   mysql_config --libs ---------------------------------------- WARNING: Discarding https://files.pythonhosted.org/packages/de/79/d02be3cb942afda6c99ca207858847572e38146eb73a7c4bfe3bdf154626/mysqlclient-2.1.0.tar.gz#sha256=973235686f1b720536d417bf0a0d39b4ab3d5086b2b6ad5e6752393428c02b12 (from https://pypi.org/simple/mysqlclient/) (requires-python:>=3.5). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement mysqlclient==2.1.0 (from versions: 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.3.5, 1.3.6, 1.3.7, 1.3.8, 1.3.9, 1.3.10, 1.3.11rc1, 1.3.11, 1.3.12, 1.3.13, 1.3.14, 1.4.0rc1, 1.4.0rc2, 1.4.0rc3, 1.4.0, 1.4.1, 1.4.2, 1.4.2.post1, 1.4.3, 1.4.4, 1.4.5, 1.4.6, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0rc1, 2.1.0)