Answers for "ImportError: No module named MySQLdb"

2

ModuleNotFoundError: No module named 'MySQLdb' in windows

You can install mysqlclient with pip

If using Python3, try this:

pip3 install mysqlclient

or in Python2

pip install mysqlclient
Posted by: Guest on July-15-2021
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

No module named 'MySQLdb'

sudo apt-get install -y python3-mysqldb
Posted by: Guest on June-10-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 "ImportError: No module named MySQLdb"

Python Answers by Framework

Browse Popular Code Answers by Language