在linux上安装psycopg2出错--Error: pg_config executable not found.

这个错误可能是因为缺少PGSQL的相关库吧。

网上有很多解决办法,我最终用以下方式解决:

yum install postgresql postgresql-devel python-devel

参考博客:https://www.cnblogs.com/aguncn/p/5776896.html

posted @ 2020-03-11 17:15  正在加载中…  阅读(871)  评论(0)    收藏  举报