pg_config executable not found pg_config executable not found python python

pg_config executable not found


pg_config is in postgresql-devel (libpq-dev in Debian/Ubuntu, libpq-devel on Centos/Fedora/Cygwin/Babun.)


On Mac OS X, I solved it using the homebrew package manager

brew install postgresql


Have you installed python-dev?If you already have, try also installing libpq-dev

sudo apt-get install libpq-dev python-dev

From the article: How to install psycopg2 under virtualenv