Ho problemi con l'installazione di psycopg2. Ottengo il seguente errore quando provo a pip 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
Ma il problema pg_configè in realtà nel mio PATH; funziona senza problemi:
$ which pg_config
/usr/pgsql-9.1/bin/pg_config
Ho provato ad aggiungere il percorso pg_config al setup.cfgfile e crearlo usando i file sorgente che ho scaricato dal loro sito web ( http://initd.org/psycopg/ ) e ho ricevuto il seguente messaggio di errore!
Error: Unable to find 'pg_config' file in '/usr/pgsql-9.1/bin/'
Ma in realtà è lì !!!
Sono sconcertato da questi errori. Qualcuno può aiutare, per favore?
A proposito, ho sudotutti i comandi. Anche io sono su RHEL 5.5.
ln -s /usr/pgsql-9.1/bin/pg_config /usr/sbin/pg_confige tutto ok!
sudo,$PATHviene modificato. Puoi ricontrollare $ PATH come root?