install sudo apt-get install postgresql libpq-dev postgresql-client postgresql-client-common python pip install psycopg2