首页 > 解决方案 > I can not install psycopg2 gives an error what to do

问题描述

I can not install psycopg2 gives an error what to do I just started to study and already such traps help.

Error:

    File "C:\Users\МК\AppData\Local\Programs\Python\Python39\lib\site-packages\django\db\backends\postgresql\base.py", line 29, in <module>
    raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: DLL load failed while importing _psycopg: Не найден указанный модуль.

标签: pythondjangopsycopg2python-3.9

解决方案


试试这个,它应该工作

pip install psycopg2-binary

推荐阅读