can't install psycopg2 ubuntu 20.04 code example Example: error while installing psycopg2 on ubuntu 20.04 $ sudo apt-get install libpq-dev python-dev