error install psycopg2 ubuntu 18.04 code example
Example 1: error while installing psycopg2 on ubuntu 20.04
$ sudo apt-get install libpq-dev python-dev
Example 2: install psycopg2 ubuntu
sudo apt-get update -y
sudo apt-get install -y python3-psycopg2