[Answered ]-Connecting Django to PostgreSQL – Error loading psycopg2 module despite install

1👍

So, after a couple hours of more searching, I finally came across an answer that worked. However, I am stumped as to why this worked. Would someone be able to explain?

The process that worked:

  • activate pipenv
  • run command
    PATH="/Applications/Postgres.app/Contents/Versions/latest/bin:$PATH"
  • install psycopg2-binary AGAIN
  • makemigrations

Leave a comment