databases icon indicating copy to clipboard operation
databases copied to clipboard

No module named MySQLdb

Open santosh-gokul opened this issue 5 years ago • 2 comments

Hi,

I'm currently using Python 3.6+, and I've installed databases along with the necessary "Mysql" dependencies for creating a FASTAPI based API server, but facing the issue " No Module Named MySQLdb", pls help me with it.

santosh-gokul avatar Oct 27 '20 06:10 santosh-gokul

why don't you try to install MySQLdb?

TnTomato avatar Dec 18 '20 06:12 TnTomato

from pymysql import install_as_MySQLdb
install_as_MySQLdb()

Leezj9671 avatar Apr 16 '21 12:04 Leezj9671