Running setup.py install for psycopg2 ... error code example
Example 1: packages required to install psycopg2
pip install psycopg2-binary
Example 2: psycopg2 error install
sudo apt install libpq-dev python3-dev
sudo apt install build-essential
Example 3: psycopg2 error pip install error
sudo apt install libpq-dev