python - 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: Не найден указанный модуль.
解决方案
试试这个,它应该工作
pip install psycopg2-binary
推荐阅读
- android - 在 WebView 中检测视频播放状态的最佳方法是什么?
- vb.net - 在 VB.NET 中的不同线程之间使用字典
- react-native - 如何将 React Native Fontsize 设置为 pt?
- c++ - Openh264 编码器增加 IDR 或 I 帧的数量
- python - numpy.memmap 在有足够的可用内存时返回不足的内存
- angular - 孩子及其孩子没有被重新渲染
- python - 只允许从 python3 上下文执行 requirements.txt
- c++ - VTK:尝试使用 vtkrubberbandpick 和 vtkHardwareSelector 选择区域中的可见单元格
- c++ - c++/CLI 代码中的内存泄漏
- c++ - 取消引用时销毁对象