Legacy-install-failure when installing mysqlclient on mac

In django project I set the database as the rds mysql database and after running the server I got thie error

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
Did you install mysqlclient?

Naturally I tried to install mysqlclient package with pip3 install mysqlclient and I'm running into this error. I also tried pip3 install mysqlclient --use-pep517 but it results a different error [logs after running the command1

Back to Top