场景:pip 安装 psycopg2 故障现场: 问题排查:个人感觉是少依赖包。 问题解决: yum install python-devel postgresql-devel pip install psycopg2