Answers for "return __import__("MySQLdb") ModuleNotFoundError: No module named 'MySQLdb'"

1

ModuleNotFoundError: No module named 'MySQLdb'

sudo apt-get install libmysqlclient-dev
sudo apt-get install libssl-dev
pip install mysqlclient
Posted by: Guest on June-18-2020
0

import MySQLdb as Database ModuleNotFoundError: No module named 'MySQLdb'

sudo apt-get install -y python-dev libmysqlclient-dev && sudo pip install mysqlclient
Posted by: Guest on March-03-2021

Code answers related to "return __import__("MySQLdb") ModuleNotFoundError: No module named 'MySQLdb'"

Python Answers by Framework

Browse Popular Code Answers by Language