Ask coding questions

← Back to all posts
What is psycopg2?
h
cftxp

Hello, I have been receiving this error "ModuleNotFoundError: No module named 'psycopg2'" when I attempt to add a PostgreSQL database to my Django project. I'm pretty new to Django, so I don't really understand if there's a particular database that I should be using, but I found a tutorial that used this so I just went with it. Is there a reason for this, since even in my attempts to add PostgreSQL to projects on my computers, the same thing seems to happen.

Thanks!

Voters
AyushJain16
cftxp
Comments
hotnewtop
AyushJain16

+1

I am also getting the same errors...I Tried installing it using
python -m pip install psycopg2
but it shows an error. I think it is due to the old version of pip. I am also not able to add packages from repl.it inbuilt packages (available on right-side vertical bar with a cube type symbol)
Also, repl don't allow us to update pip to the latest version! If anyone else has resolved this issue! Please help
Thanks in advance!