Reputation: 38691
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.
Upvotes: 2
Views: 2961
Reputation: 38691
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
Upvotes: 0
Reputation: 3057
I guess you need to install it according to these instructions - https://www.postgresql.org/download/linux/redhat/.
Upvotes: 1