psycopg2のインストールに問題があります。次のエラーが発生しますpip install psycopg2
:
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'.
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build/psycopg2
しかし、問題はpg_config
実際には私の中にPATH
あります。問題なく動作します:
$ which pg_config
/usr/pgsql-9.1/bin/pg_config
ファイルにpg_configパスを追加し、Webサイト( http://initd.org/psycopg/setup.cfg
)からダウンロードしたソースファイルを使用してビルドしようとすると、次のエラーメッセージが表示されます。
Error: Unable to find 'pg_config' file in '/usr/pgsql-9.1/bin/'
しかし、それは実際にそこにあります!!!
私はこれらのエラーに困惑しています。誰か助けてもらえますか?
ちなみに、私はsudo
すべてのコマンドです。また、私はRHEL5.5を使用しています。