安装python依赖包psycopg2来调用postgresql的操作 ERROR: Command errored out with exit status 1: python setup.py
1、先安装psycopg2的依赖组件本案例的操作系统为linux red hat在安装python依赖包psycopg之前,你必须需要先安装postgresql数据库的相关组件:postgresql-devel,postgresql,postgresql-libs这三个组件比较重要。另外,可选组件:postgresql-server安装上述组件之前,可以用命令来查看你的系统现在是否已经安装了相关组件:[root@dthost27 ~]# rpm -qa | grep PostgreSQ
原创
2021-05-15 10:48:18 ·
643 阅读 ·
0 评论