error while installing psycopg2 on ubuntu 20.04

C++
$ sudo apt-get install libpq-dev python-dev

Source

Also in C++: