Answers for "ModuleNotFoundError: No module named 'MySQLdb' python 3 flask"

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
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 "ModuleNotFoundError: No module named 'MySQLdb' python 3 flask"

Python Answers by Framework

Browse Popular Code Answers by Language