pg_config executable not found

后端 未结 30 2138
渐次进展
渐次进展 2020-11-22 15:42

I am having trouble installing psycopg2. I get the following error when I try to pip install psycopg2:

Error: pg_config executable not found.

P         


        
30条回答
  •  隐瞒了意图╮
    2020-11-22 16:26

    On Mac OS X and If you are using Postgres App (http://postgresapp.com/):

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

    No need to specify version of Postgres in this command. It will be always pointed to latest.

    and do

    pip install psycopg2
    

    P.S: If Changes doesn't reflect you may need to restart the Terminal/Command prompt

    Source

提交回复
热议问题