Psycopg2 error while installing code example
Example 1: error while installing psycopg2 on ubuntu 20.04
$ sudo apt-get install libpq-dev python-dev
Example 2: pip install psycopg2 error fedora
sudo dnf install python-devel postgresql-devel rpm-build
pip install psycopg2