0

After changing database to mysql in Django I cannot migrate. I use Django 3.0.8, Python 3.7,

I have installed mysqlclient, PyMySQL, mysql-connector-python and nothing changed.

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

Do you have any idea guys?

  • Does this answer your question? [django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb](https://stackoverflow.com/questions/15312732/django-core-exceptions-improperlyconfigured-error-loading-mysqldb-module-no-mo) – Tiago Martins Peres Oct 14 '20 at 11:04

1 Answers1

0

Go to this site, https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient, when you download the first one, go to command prompt, and use pip install (wheel file name). if it doesn't work, keep on downloading the others and installing them until no error is being shown. .

Ahmad Waqar
  • 474
  • 4
  • 7