Mam problem z instalacją psycopg2. Podczas próby pip install psycopg2: pojawia się następujący błąd :
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
Ale problem tkwi pg_configw moim PATH; działa bez problemu:
$ which pg_config
/usr/pgsql-9.1/bin/pg_config
Próbowałem dodać ścieżkę pg_config do setup.cfgpliku i zbudować ją przy użyciu plików źródłowych pobranych z ich strony internetowej ( http://initd.org/psycopg/ ) i otrzymuję następujący komunikat o błędzie!
Error: Unable to find 'pg_config' file in '/usr/pgsql-9.1/bin/'
Ale tak naprawdę jest TAM !!!
Niepokoją mnie te błędy. Czy ktoś może pomóc?
Nawiasem mówiąc, mam sudowszystkie polecenia. Też jestem na RHEL 5.5.
ln -s /usr/pgsql-9.1/bin/pg_config /usr/sbin/pg_configi wszystko jest w porządku!
sudo,$PATHulega zmianie. Czy możesz dokładnie sprawdzić swoją $ PATH jako root?