只需要安装psycopg2这个库就好了,系统为centOS6.3
sudo yum install postgresql-devel.x86_64 sudo pip install -U psycopg2