Install libpq-dev on Mac OS X

后端 未结 5 1519
心在旅途
心在旅途 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 07:07

    Just install postgres from source. I'm doing that on Mac OS X. It's as easy as:

    ./configure 
    make
    sudo make install
    

    Of course you may need extra steps like autostarting, or setting configure options, but I belive this is still most painless way of setting up on Mac OS X.

    And if you for some reason want to avoid installing from source, you should look for a binary version of psycopg2, e.g. here: http://www.initd.org/psycopg/download/

    sudo port install py27-psycopg2
    

提交回复
热议问题