Hey, I’m pretty new to linux (using Ubuntu 11.04) so bear with me here.
I downloaded psycopg2 2.4.1 from http://linux.softpedia.com/get/Database/Database-APIs/psycopg-6404.shtml
Then I try running…
python setup.py install
..While in the directory but then it tells me..
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
… and I don’t know how to get to the path of pg_config (and I can’t even find it).
Thanks for any help.
Here’s an easy solution if you find your
pg_config:Or wherever your installation of
PostgreSQLdumped off yourpg_configfile.