I am having trouble installing psycopg2. I get the following error when I try to pip install psycopg2:
pip install psycopg2
Error: pg_config executable not found. P
sudo apt-get install libpq-dev works for me on Ubuntu 15.4
sudo apt-get install libpq-dev