Cara Mengatasi “ImportError: No module named MySQLdb” di Python

Pesan error ImportError: No module named MySQLdb pada aplikasi berbasis framework Python seperti Flask atau Django karena library mysqlclient belum terinstall di sistem operasi dan library MySQL untuk Python belum terinstall.

Install paket libmysqlclient-dev, python-dev

Install MySQL-python via pip

selamat mencoba 🙂

Default image
Musa Amin
I am a Linux System Administrator and also write many tutorials about Linux, Cloud, and Open Source. Hire me via email hai[at]musaamin.web.id.

Leave a Reply