No module named MySQLdb (python exception)

No module named MySQLdb (python exception)

python导入包MySQLdb异常:

解决方案:

Ubuntu 14, Ubuntu 16, Debian 8.6 (jessie):

Fedora 24:

Centos 6, Centos 7:

参考:https://stackoverflow.com/questions/25865270/how-to-install-python-mysqldb-module-using-pip