[Fixed]-Django-zappa: Error loading psycopg2 module: libpq.so.5: cannot open shared object file: No such file or directory

25👍

I managed to solve the problem by installing the psycopg2-binary package:

pip install psycopg2-binary

After a redeploy, it works fine.

👤OhMad

1👍

I encountered the same problem when runing django in a raspberrypi model 3 B+ with the latest os.

sudo  apt-get install libpq5 -y 

worked for me

Leave a comment