Skip to content Skip to sidebar Skip to footer

Django 1.4.1 Error Loading Mysqldb Module When Attempting 'python Manage.py Shell'

I am trying to set up MySQL, and can't seem to be able to enter the Django manage.py shell interpreter. I did install MySQL-python but that did not solve the issue. Getting the out

Solution 1:

You are probably missing the MySQLdb module. You basically just have to install it.

By the looks of it, you are using a Mac, so you might want to check out this answer for detailed installation instructions: How to install MySQLdb (Python data access library to MySQL) on Mac OS X?

On a totally alternate solution, as you mentionned Django development you might want to use sqlite3 instead of MySQL, which could be simpler to install.

Solution 2:

You should be able to import MySQLdb from python shell. Try importing MySQLdb from python shell not django

If you can not import MySQLdb from python shell; It may caused because of 32-64 bit mismatch,

Try this link

Post a Comment for "Django 1.4.1 Error Loading Mysqldb Module When Attempting 'python Manage.py Shell'"