Install libpq-dev on Mac OS X

后端 未结 5 1569
心在旅途
心在旅途 2021-02-04 06:26

I\'m trying to run Django with a Postgresql backend on my local Mac OS X. I\'ve installed Django using pip:

sudo pip install Django

I\'ve inst

5条回答
  •  甜味超标
    2021-02-04 06:45

    So I ended up following the advice here:

    http://blog.jonypawks.net/2008/06/20/installing-psycopg2-on-os-x/

    Turns out I did have pg-config installed, but I had to dig around to find it a bit. Once I included that in the path, everything worked swimmingly. Here's the snippet from that link:

    PATH=$PATH:/Library/PostgresPlus/8.3/bin/ sudo easy_install psycopg2
    

    I used pip instead of easy_install and my PostgreSQL installation directory was slightly different, but that's the gist.

提交回复
热议问题