Search code examples
pythondjangopippsycopg2psycopg

Psycopg missing module in Django


I have pip installed psycopg2, but when I try to runserver or syncdb in my Django project, it raises an error saying there is "no module named _psycopg".

EDIT: the "syncdb" command now raises: django.core.exceptions.ImproperlyConfigured: ImportError django.contrib.admin: No module named _psycopg

Thanks for your help


Solution

  • This was solved by performing a clean reinstall of django. There was apparently some dependecies missing that the recursive pip install did not seem to be able to solve.