Error loading MySQLdb module.
snippet in sql

error loading mysqldb module.

user8028

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

Error loading MySQLdb module.

user4967

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