当前位置: 首页 > 知识库问答 >
问题:

安装odoo时,mac上退出状态为1的命令出错

曹旭
2023-03-14
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个答案

裴存
2023-03-14

先安装pg_config,然后再试一次。

首先运行这个brew命令:

brew install postgresql

然后重新安装。

 类似资料: