Error Installing Psycopg2

[Solved] Error Installing Psycopg2 | Shell - Code Explorer | yomemimo.com
Question : error while installing psycopg2 on ubuntu 20.04

Answered by : yellowed-yak-qfqrvm56rtpz

$ sudo apt-get install libpq-dev python-dev

Source : https://springmerchant.com/bigcommerce/psycopg2-virtualenv-install-pg_config-executable-not-found/ | Last Update : Wed, 04 Nov 20

Question : pip install psycopg2 error fedora

Answered by : adam-scerra

sudo dnf install python-devel postgresql-devel rpm-build
pip install psycopg2

Source : | Last Update : Sun, 22 Nov 20

Question : packages required to install psycopg2

Answered by : ricardo-hincapie

pip install psycopg2-binary

Source : https://stackoverflow.com/questions/5420789/how-to-install-psycopg2-with-pip-on-python | Last Update : Tue, 19 Jan 21

Question : psycopg2 error install

Answered by : tshepo-mohlatlole

sudo apt install libpq-dev python3-dev
sudo apt install build-essential

Source : https://stackoverflow.com/questions/5420789/how-to-install-psycopg2-with-pip-on-python | Last Update : Thu, 14 Jan 21

Question : psycopg2 error pip install error

Answered by : satinder-singh

sudo apt install libpq-dev

Source : https://stackoverflow.com/questions/5420789/how-to-install-psycopg2-with-pip-on-python | Last Update : Thu, 12 Nov 20

Question : error installing psycopg2

Answered by : cephas-kingori

-(option1) Incase you encounter an error installing psycopg2, try installing the binaries instead:
pip install psycopg2-binary	-or (option2) downgrade the header file libpq5
sudo aptitude install libpq-dev # aptitude is recommended since it is better when it comes to resolving dependencies
accept the solution that recommends downgrading libpq5(usually the second recommended action)
pip install psycopg2
sudo apt-get install -y libpq5 # undo the downgrade

Source : | Last Update : Wed, 03 Aug 22

Question : install psycopg2'

Answered by : spotless-stoat-kfjel9o7veqm

pip3 install psycopg2-binary # for version 3 and up

Source : | Last Update : Mon, 13 Jun 22

Question : psycopg2 error

Answered by : kevin-tempel

$ pip install psycopg2-binary

Source : | Last Update : Fri, 13 Nov 20

Question : install psycopg2

Answered by : jocelyn

#Use psycopg2-binary instead of psycopg2.
pip install psycopg2-binary

Source : | Last Update : Sun, 03 Oct 21

Answers related to error installing psycopg2

Code Explorer Popular Question For Shell