Форум сайта python.su
0
running build_ext
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’.
Такая ошибка возникла при установке psycopg на питон.
Что это за файл?
Офлайн
14
Ставьте уже скомпилированную версию
Офлайн
0
Андрей СветловРазве такая есть?
Ставьте уже скомпилированную версию
Офлайн
0
TsibaПод какую ОСь?Андрей СветловРазве такая есть?
Ставьте уже скомпилированную версию
Офлайн
0
Такая же ошибка на маке 10.5.
Ставил через pip install psycopg2 для виртуального окружения.
Офлайн
0
На Убунте, чтобы потсавить psycopg2 должны быть установлены пакеты libpq-dev и python-dev
sudo apt-get install libpq-dev python-dev
Офлайн
0
Ага, решил эту проблему на убунте именно так, думал что и на дебиане так и сделаю. Фиг!
После того как хочу скомпилировать 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’.
r@p#apt-get update
r@p#apt-get upgrade
r@p#apt-get install libpq-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libpq-dev : Depends: libssl-dev but it is not going to be installed
Depends: libkrb5-dev but it is not going to be installed
Depends: comerr-dev but it is not going to be installed
E: Broken packages
Офлайн
1
Перд установкой псайкопг ставьте сначала postgres-dev (всякия тама гцц и прочее - само собой.), для того, чтобы установщик мог скомпилить пакет по вашу версию.
Офлайн