python安装psycopg2

vim ~/.bash_profile 

export PATH=/Applications/Postgres.app/Contents/Versions/9.4/bin/:$PATH
pip install psycopg2
原文地址:https://www.cnblogs.com/ziyouchutuwenwu/p/4719250.html