Q:

jango.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module

//For Mysql
sudo apt-get install libmysqlclient-dev

//If you are using MariaDB
sudo apt-get install libmariadbclient-dev

pip install mysqlclient

/*
	If you are getting a error like
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    then : 
*/
sudo apt-get install python3-dev

//Then 
pip install mysqlclient
0
sudo apt-get install libmysqlclient-dev
sudo apt-get install libssl-dev
pip install mysqlclient
0

New to Communities?

Join the community