CentOS上pip install psycopg2 失败

若报错如下:

ERROR: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-0_r5psic/psycopg2/

先安装这个

yum install postgresql-devel
For example, "name@something.com". If someone replies to you it will be via email.
For example, "http://someaddress.com"