0

I am trying to use django with mysql. So in settings.py I gave the engine :

'ENGINE': 'django.db.backends.mysql', 

But when I try to run python manage.py syncdb I get the following error:

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb

From here I got the solution for it, i.e. to install MySQL_python. But when I try to install mysql_python I get the following error:

error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1

All the solutions that I found suggest to install the new version of xCode. Is there a way to get rid of the error without installing xCode.

1 Answer 1

1

No. You need to install XCode to have gcc available in OS X, which is a requirement for compiling Python modules written in C.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.