Skip to content Skip to sidebar Skip to footer

Mysqldb - Modulenotfounderror

I'm failing at importing MySQLdb: import MySQLdb results in: ModuleNotFoundError: No module named 'MySQLdb' I installed the following: pip install mysql-python pip install mysql

Solution 1:

You should use pip3 instead of pip, since you are using Python 3.6.
Use pip for Python2.x
So your command should be like

pip3 install mysqlclient

Post a Comment for "Mysqldb - Modulenotfounderror"