pg_config executable not found

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这个文件。

 

posted @ 2015-08-23 22:45  小沐枫  阅读(5836)  评论(0编辑  收藏  举报