Closed codingPineAppl3 closed 3 months ago
You have install psycopg2
but the import error reports psycopg
which is Psycopg 3.
You have install
psycopg2
but the import error reportspsycopg
which is Psycopg 3.
It doesn't matter if I install psycopg2 or psycopg. Even If I install both, I still get this error.
You must be installing them the wrong place. The error says that the module is not found. You are probably using pip from one environment and python from another.
Please complete the following information:
Describe the bug I get "ModuleNotFoundError: No module named 'psycopg'" even though psycopg2==2.9.9 is installed. I work with venv. But I also tried to install it globally and still got the same error. I also tried to install the binary version as suggested in this StackOverflow page. I am out of ideas.