【发布时间】:2019-11-06 18:13:30
【问题描述】:
我创建了一个使用 Postgresql 的 python 应用程序。我在进行开发时使用了 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>).
有人知道如何解决这个问题吗?
【问题讨论】:
标签: postgresql amazon-web-services amazon-elastic-beanstalk