вторник, 29 декабря 2015 г.

Installing psycopg2 in Mac

first install psql 

 sudo port install postgresql93-server
or

brew install postgresql93-server

Then 

pip install psycopg2

Excepton 1:  pg_congig not found


export PATH="/opt/local/lib/postgresql93/bin:$PATH"
pip install psycopg2

Exception 2: -unknown argument: '-mno-fused-madd'

export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
pip install psycopg2

Комментариев нет:

Отправить комментарий