psycopg2 error install

C++
pip install psycopg2-binarysudo apt install libpq-dev python3-dev
sudo apt install build-essential
Source

Also in C++: