python安装psycopg2报:PG_CONFIG Executable Not Found

PG_CONFIG是postgresql的配置文件,如果找不到可能是没有安装postgresql,或者配置文件位置不正确,或者没有该配置,

安装sudo pip3 install psycopg2是报错:
PG_CONFIG Executable Not Found

检查发现没有安装postgresql,

通过:sudo apt-get install -y postgresql 安装后解决

posted on 2024-01-13 23:04  哼着歌啦啦啦  阅读(731)  评论(0编辑  收藏  举报