No Module Psycopg2

[Solved] No Module Psycopg2 | Python - Code Explorer | www.yomemimo.com
Question : no module psycopg2

Answered by : fine-flatworm-qnh0gm855aak

# For quick install
pip install psycopg2-binary
# For production-ready install
pip install psycopg2
# But it will fail if build prerequesties are not met:
# https://www.psycopg.org/docs/install.html#build-prerequisites

Source : https://www.psycopg.org/docs/install.html | Last Update : Thu, 11 Jun 20

Question : No module named 'psycopg2'

Answered by : salo-hopeless

$ pip install psycopg2
# or
$ pipenv install psycopg2

Source : | Last Update : Thu, 18 Mar 21

Question : No module named 'psycopg2'

Answered by : naresh-mungpara

pip install psycopg2 

Source : https://stackoverflow.com/questions/12906351/importerror-no-module-named-psycopg2 | Last Update : Tue, 27 Oct 20

Question : no module named psycopg2

Answered by : jocelyn

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

Source : https://stackoverflow.com/questions/12906351/importerror-no-module-named-psycopg2 | Last Update : Sun, 03 Oct 21

Answers related to no module psycopg2

Code Explorer Popular Question For Python