Guys, I have a similar problem but the difference is pg_config is actually in my PATH:
$ which pg_config /usr/pgsql-9.1/bin/pg_config I get the following error when I try to pip install psychopg2 ################### 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 ... or with the pg_config option in 'setup.cfg'. ---------------------------------------- Command python setup.py egg_info failed with error code 1 in /tmp/pip-build/psycopg2 ################### I tried adding pg_config path to the setup.cfg file and build it using the source files I downloaded from their website and I get the following error message! Error: Unable to find 'pg_config' file in '/usr/pgsql-9.1/bin/' But it is actually THERE!!! I am baffled by these errors. Can anyone help please? By the way, I sudo all the commands. Also I am RHEL 5.5. On Thursday, March 24, 2011 11:18:23 AM UTC-5, Shawn Milochik wrote: > > On Thu, Mar 24, 2011 at 12:03 PM, Andre Lopes <lopes80an...@gmail.com> > wrote: > > I have solved. > > > > I just edited "setup.cfg" on the psycopg2 and added: > > > > pg_config=C:\Program Files\PostgreSQL\8.4\bin\pg_config.exe > > > Yeah, that's the easiest method, but you specifically wanted to know > how to install it with pip. That way you have to install the module > manually. But it works. ;o) > > Shawn > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/iq3tj3Qpj8AJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.