installer pSycopg2 ubuntu
sudo apt-get update -y
sudo apt-get install -y python3-psycopg2
Busy Bison
sudo apt-get update -y
sudo apt-get install -y python3-psycopg2
#Use psycopg2-binary instead of psycopg2.
pip install psycopg2-binary
pip3 install psycopg2-binary # for version 3 and up
$ pip install pgcli
or
$ easy_install pgcli