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