1👍
This is why you should install Python packages via pip
, not your OS package manager. MySQLdb is not available for Python 3, as you can see from the error when you tried via pip3
.
The reason you had issues installing mysql-client is presumably because you need the python-devel package, or whatever the Fedora equivalent is; that would be a dnf install.
However since you did succeed with mysql-connector, you can use that; you need to configure Django to use it as shown in that library’s documentation, by replacing 'django.db.backends.mysql'
with 'mysql.connector.django'
.
Source:stackexchange.com