Tengo problemas para instalar psycopg2. Recibo el siguiente error cuando intentopip install psycopg2 :
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
Pero el problema es pg_configen realidad en mi PATH; Se ejecuta sin ningún problema:
$ which pg_config
/usr/pgsql-9.1/bin/pg_config
Intenté agregar la ruta pg_config al setup.cfgarchivo y compilarlo utilizando los archivos fuente que descargué de su sitio web ( http://initd.org/psycopg/ ) y recibí el siguiente mensaje de error.
Error: Unable to find 'pg_config' file in '/usr/pgsql-9.1/bin/'
Pero en realidad está allí!
Estoy desconcertado por estos errores. ¿Alguien puede ayudar por favor?
Por cierto, yo sudotodos los comandos. También estoy en RHEL 5.5.
ln -s /usr/pgsql-9.1/bin/pg_config /usr/sbin/pg_configy todo está bien!
sudo,$PATHse cambia. ¿Puedes por favor verificar tu $ PATH como root?