pg_config executable not found

后端 未结 30 2419
渐次进展
渐次进展 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:14

    On MacOS, the simplest solution will be to symlink the correct binary, that is under the Postgres package.

    sudo ln -s /Applications/Postgres.app/Contents/Versions/latest/bin/pg_config /usr/local/bin/pg_config
    

    This is fairly harmless, and all the applications will be able to use it system wide, if required.

提交回复
热议问题