Gideon
Gideon

Reputation: 989

pip install psycopg2 not working

After trying everything mentioned on the posts I could find about this same issue, I have yet to have any luck installing psycopg2

warning: manifest_maker: standard file '-c' not found

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

Upvotes: 3

Views: 2244

Answers (1)

highpost
highpost

Reputation: 1323

pg_config is in /Applications/Postgres.app/Contents/Versions/9.3/bin. So you need to add that directory to your PATH in ~/.bash_profile:

PATH=/Applications/Postgres.app/Contents/Versions/9.3/bin:$PATH

Upvotes: 3

Related Questions