简体   繁体   中英

update PostgreSQL client library to 9.1

I am installing psycopg2 using this command:

pip3 install psycopg2

But the output is:

./psycopg/psycopg.h:30:2: error: #error "Psycopg requires PostgreSQL client library (libpq) >= 9.1"

My pg_config version: pg_config --version is PostgreSQL 8.4.20 . How to upgrade PostgreSQL client library? I am searching from Google, but no method to guide me. Python version: 3.5.0.

我猜您需要根据以下说明进行安装-https: //www.postgresql.org/download/linux/redhat/

Upgrade pip version 7.1.2 to version 18.1 solve this problem:

pip3 install --upgrade pip

Execute this command to install psycopg2 :

pip3 install psycopg2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM