Install libpq-dev on Mac OS X

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

    In postgress.app on mavericks the file pg_config is in /Applications/Postgres.app/Contents/MacOS/bin/ so i fixed the problem in this way:

    sudo PATH=$PATH:/Applications/Postgres.app/Contents/MacOS/bin/ pip install psycopg2
    

提交回复
热议问题