No module named 'MySQLdb'
snippet in sql

ModuleNotFoundError: No module named 'MySQLdb'

user6991

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

No module named 'MySQLdb'

user7973

sudo apt-get install -y python3-mysqldb