[Django]-Postgres with Django – Improperly configured. Error : ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2'

4👍

psycopg2 is not installed in your env.

Make sure you use correct virtualenv (if use), and install psycopg2.

tye pip install psycopg2. (if using pip3, use pip3 install psycopg2).

ps. If you’re in ubuntu, install other dependencies

sudo apt-get install build-dep python-psycopg2

9👍

Try to install psycorpg2 using this:

pip install psycopg2-binary

👤Max

Leave a comment