pg_config executable not found

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

    Just solved the problem in Cent OS 7 by:

    export PATH=$PATH:/usr/pgsql-9.5/bin
    

    make sure your PostgreSql version matches the right version above.

提交回复
热议问题