psycopg2 не устанавливает Fedora
# FEDORA
sudo dnf install postgresql-devel python3-devel
sudo dnf install redhat-rpm-config
Thankful Teira
# FEDORA
sudo dnf install postgresql-devel python3-devel
sudo dnf install redhat-rpm-config