Shortnote
Install When you're using Ubuntu 22.04/ubuntu 22.10
sudo apt-get install libpq5=14.5-0ubuntu0.22.04.1 && sudo apt-get install libpq-dev
Bonus
Django old version doesn't work well with psycopg2-binary latest or version > 8
You can resolve this issue by installing
pip install psycopg2-binary==2.8.6
Hope it will save you some time
Top comments (0)