您的位置:首页 > 其它

pg_config executable not found

2015-08-23 22:45 309 查看
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'.
error: Setup script exited with 1


psycopg2 安装的时候报错如上。

解决方法:PATH=$PATH:/usr/pg目录/bin/ 它要找pg_config这个文件。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: