sudo easy_install pip
pip install mezzanine
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install postgresql -v
initdb /usr/local/var/postgres -E utf8
设成开机启动 PostgreSQL:ln -sfv /usr/local/opt/postgresql/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
pg_ctl -D /usr/local/var/postgres stop -s -m fast
五、装psycopg2sudo pip install psycopg2
>>> import django
>>> django.VERSION
(1, 9, 1, 'final', 0)
>>> import psycopg2
>>> psycopg2
<module 'psycopg2' from '/Library/Python/2.7/site-packages/psycopg2/__init__.pyc'>
>>>