Answer the question
In order to leave comments, you need to log in
What is the problem when importing psycopg?
Good afternoon.
I am developing a flask application (1.1.2). ORM - flask-sqlalchemy (2.4.4)
Installed psycopg2 (2.8.5)
python (3.8.2)
When importing it, a similar stacktrace occurs:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\Program Files\JetBrains\PyCharm 2019.2.4\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Users\f\Documents\PythonProjects\project_name\venv\lib\site-packages\psycopg2\__init__.py", line 51, in <module>
from psycopg2._psycopg import ( # noqa
File "C:\Program Files\JetBrains\PyCharm 2019.2.4\helpers\pydev\_pydev_bundle\pydev_import_hook.py", line 21, in do_import
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question