[Solved-5 Solutions] Getting “Error loading MySQLdb module: No module named MySQLdb” - Python tutorial
- When we activate the virtualenv and run python manage.py syncdb, we get this error:
First Run this command:
Now you can run your command.
- If you don't have pip, easy_install MySQL-python should work.
- If your python is managed by a packaging system, you might have to use that system (e.g. sudo apt-get install)
You can try this:
mysql_config must be on the path. On Mac, do