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這個文件。