January 31, 2017

How to solve the problem of "ImportError: No module named MySQLdb" in Python

You need to install mysql-python:
  • yum install MySQL-python (Linux Fedora, CentOS, RedHat)
  • apt-get install python-mysqldb (Linux Ubuntu)
  • cd /usr/ports/databases/py-MySQLdb && make install clean (FreeBSD)
See also
Post a Comment

Featured Post

Payara Server – Robust, Reliable, Supported

Payara Server is an open source application server derived from GlassFish, with an option of 24/7 Production and Migration & Project Sup...