Adsense Ad

Saturday, 28 March 2020

Python - Flask: ModuleNotFoundError: No module named 'MySQLdb'

When we try to communicate with our xampp server mysql this "ModuleNotFoundError: No module named 'MySQLdb' " is raised. Not to worry.

Just open your command line at type following command to install mysql client:
pip install mysqlclient

If you still can't install it and having some errors then visit Unofficial Python Libraries to download mysql-client and install it through wheel using following command

pip install <downloadedWheelLibraryName>

No comments: