install psycopg2 with command line linux code example
Example: psycopg2 error install
sudo apt install libpq-dev python3-dev
sudo apt install build-essential
sudo apt install libpq-dev python3-dev
sudo apt install build-essential