Fix ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
To fix the "No module named MySQLdb" error, you need to install MySQL support for Python; do the following:
Code
pip install MySQL-python
NOTE: Don't use sudo with pip. Fix your directory permissions if you find yourself needing to use sudo.
Other errors:
Code
EnvironmentError: mysql_config not found
Code
sudo apt-get install libmysqlclient15-dev
Code
Python.h: No such file or directory
Code
sudo apt-get install python2.7-dev