Django MySQLdb version does not match Ubuntu _mysql version

I am trying to get a django site deployed from a repository. I was almost there, and then I changed something (I'm not sure what!) And returned to the square.

Now I'm trying to run. /manage.py syncdb and get the following error:

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: this is the version of MySQLdb (1, 2, 3, 'final', 0), but _mysql is the version (1, 2, 2, 'final', 0)

I searched the forums for several hours and none of the solutions presented helped. I tried uninstalling and reinstalling MySQL-python and updating it. I get the same error when trying to import it from the python command line interpreter.

Does anyone have any suggestions?

+4
source share
2 answers

For those who are faced with this question:

It turned out that the ubuntu _mysql version is different from the version in my vein. Removing this and reinstalling in my venve did the trick.

+2
source

I have the same problem after installing mysql-python using pip. This seems to be a bug in the pip package. I solved this by trying to remove it again, after which I downloaded and installed the package manually as follows:

+2
source

All Articles