2016-12-17 12 views
0

私はに来るまで、DjangoのHerokuのチュートリアルに従おうとしています。無負荷ジャンゴ、DJ-データベースとユニコーン、ロードpsycopg2のstucksに問題とgetDjangoのrequirements.txtをインストールするとエラーが発生します

Error: pg_config executable not found.

はありませんが、私はSOのようなGetting Started with Python on HerokuCan't figure out where Heroku app is failingにいくつかのエントリを超える読みました。私はそこで答えと提案をたどり、私はbrew経由でpostgresqlを再度インストールしました。すべて成功なし。

私のPATHが

/usr/local/bin : /usr/bin : /bin : /usr/sbin : /sbin : /usr/local/lib/python2.7/site-pakages : /Applications/Postgres.app/Contents/Versions/9.6/bin : /Users/Martin/anaconda/bin : /usr/X11/bin

であると私はpg_configは、それがあるべき場所で、PATHに追加されます。 しかし、私はまだ私がOSSiera 10.12.2日午前メッセージ

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'.

を取得します。 ヘルプは高く評価されています。

答えて

0

あなたのOSでpostgresql-develパッケージが見つからないようです。

brew install postgresql 

問題を解決する必要があります。

+0

@ user639774 postgresqlが正しくインストールされました。ありがとう、 – MarBlo

+0

しかし、私はPATHにpg_configへのパスを追加しなければならないことを理解しました。いったんこのファイルがどこにあるのか分かったら、PATHに追加して、新しいターミナルを閉じて開いた後、すべてがうまくいった。ありがとう – MarBlo

関連する問題