Installieren Sie Psycopg2 Ubuntu 20.04
pip install psycopg2-binary
Lienus
pip install psycopg2-binary
$ sudo apt-get install libpq-dev python-dev