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

 

相关文章:

  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
  • 2021-08-23
  • 2021-09-05
  • 2022-12-23
猜你喜欢
  • 2021-07-07
  • 2021-08-21
  • 2021-11-01
  • 2021-09-20
  • 2022-02-22
相关资源
相似解决方案