pg_config executable not found

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

    Have you installed python-dev? If you already have, try also installing libpq-dev

    sudo apt-get install libpq-dev python-dev
    

    From the article: How to install psycopg2 under virtualenv

提交回复
热议问题