Deprecated: Optional parameter $keys declared before required parameter $cms_id is implicitly treated as a required parameter in /home/www/dev/work/class/blog/CmsKey.php on line 75

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\main::$outlink is deprecated in /home/www/dev/work/website/lvesu/template/blog/cms/cms.tpl on line 2

Deprecated: Creation of dynamic property lvesu\lvesu\controller\blog\main::$status is deprecated in /home/www/dev/work/website/lvesu/template/blog/index.head.php on line 2
Error: pg_config executable not found - 互联网笔记

略微加速

略速 - 互联网笔记

Error: pg_config executable not found

2020-11-16 leiting (8379阅读)

标签 Linux 运维 Python

Error: pg_config executable not found

需要安装postgresql-devel插件

yum install postgresql-devel*


安装 pg 和 py 的驱动:


Debian系:

apt-get install libpq-dev python-dev


RedHat系:

yum install libpqxx-devel python-devel


安装完成,再使用

 pip install psycopg2


北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3