pip3 install psycopg2 error ubuntu code example
Example 1: error while installing psycopg2 on ubuntu 20.04
$ sudo apt-get install libpq-dev python-dev
Example 2: psycopg2 error install
sudo apt install libpq-dev python3-dev
sudo apt install build-essential
Example 3: psycopg2 error pip install error
sudo apt install libpq-dev