Установка программы на Python в AWS Elastic Beanstalk с Postgresql выдает ошибку pg_config - PullRequest
0 голосов
/ 06 ноября 2019

Я создал приложение на python, которое использует Postgresql. Я использовал библиотеку psycopg2 (v 2.8.4) при разработке, но при попытке установить ее на beanstalk выдает следующую ошибку:

Error: pg_config executable not found.

pg_config is required to build psycopg2 from source.  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'.

If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.

For further information please check the 'doc/src/install.rst' file (also at
<http://initd.org/psycopg/docs/install.html>).

У кого-нибудь есть идеи, как решить эту проблему?

1 Ответ

0 голосов
/ 06 ноября 2019

Нашел ответ на вопрос. Вместо непосредственной установки psycopg2 используйте psycopg2-binary==2.8.4.

Аналогичный вопрос также задают здесь

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...