Shell/Bash: django.core.exceptions.improperlyconfigured: error loading mysqldb module. did you install mysqlclient? Example

By

Shell/Bash Example: This is the "django.core.exceptions.improperlyconfigured: error loading mysqldb module. did you install mysqlclient?" Example. compiled from many sources on the internet by SimpleTutorials.org

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

sudo apt-get install libmysqlclient-dev
sudo apt-get install libssl-dev
pip install mysqlclient

#for Debian
su apt install libmysqlclient-dev
su apt install libssl-dev
pip install mysqlclient

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

//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

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

pip install pymysql

Error loading MySQLdb module.

pip3 install http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-2.0.4.zip

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

import pymysql

pymysql.install_as_MySQLdb()

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

 File "C:\Users\user\env\lib\site-packages\django\db\backends\mysql\base.py", line 30, in 
    'Did you install mysqlclient or MySQL-python?' % e
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named 'MySQLdb'.
Did you install mysqlclient or MySQL-python?



* Summary: This "django.core.exceptions.improperlyconfigured: error loading mysqldb module. did you install mysqlclient?" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others