Reputation: 97
raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: DLL load failed while importing _psycopg: The specified module could not be found.
i have installed letest postgres setup
psycopg2 installed
Upvotes: 1
Views: 12845
Reputation: 1
I was using pipenv
What you can do is first uninstall pyscopg2:
pipenv uninstall psycopg2
Then also uninstall psycopg2-binary:
pipenv uninstall psycopg2-binary
Finally Install the psycopg2-binary again:
pipenv uninstall psycopg2-binary
Upvotes: 0
Reputation: 253
The fix for my coworker was:
pip uninstall psycopg2
pip uninstall psycopg2-binary
pip install psycopg2-binary
Upvotes: 0
Reputation: 3455
Try to install psycopg2 with:
pip install psycopg2-binary
see psycopg2
Upvotes: 2
Reputation: 97
I just solve this error by installing second latest python version and to install PostgreSQL use pip install postgres
this will install psycopg2 & psycopg2-binary
Upvotes: 5