When running migration for a Django application with “python manage.py migrate”, I got the following error message
ModuleNotFoundError: No module named 'MySQLdb'
To fix install
pip install mysqlclient
This will require MySQL development package. On the Ubuntu server running MariaDB, I installed packaged libmariadb-dev
sudo apt install libmariadb-dev
Back to Errors
Leave a Reply