Install libpq-dev on Mac OS X

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

    Using macports, this worked for me:

    sudo port install postgresql96
    sudo port select --set postgresql postgresql96
    

    I believe this installs all the postgres client tools and libs, while macports has a separate port for installing the server, i.e. postgresql96-server.

提交回复
热议问题