当前位置:网站首页>【杂谈】Error loading psycopg2 module :No module named psycopg2
【杂谈】Error loading psycopg2 module :No module named psycopg2
2022-07-26 10:16:00 【炒扁豆】
- 在使用Django连接postgresql数据库的时候,使用
python manage.py migrate创建数据库时提示:django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2' - 解决办法:
apt install psycopg2如果失败了,不用管apt install libpq-dev或者apt install postgresql-server-dev-X.Y,必须安装成功其中之一pip install psycopg2必须安装成功。- 最后记得给你的
setting.py里面设置的数据库,设置一个访问密码,否则也会报错。
- 设置访问密码可以参考这里的相关命令。
边栏推荐
- I finished watching this video on my knees at station B
- Tower of Hanoi II | tower of Hanoi 4 columns
- 句句解析js中的完美 / 缓冲运动框架(新手专用)
- Production of a-modal drag function in antui
- 简单化构造函数的继承方法(一)- 组合继承
- Wechat applet development
- The problem of four columns of Hanoi Tower
- Uniapp common error [wxml file compilation error]./pages/home/home Wxml and using MySQL front provided by phpstudy to establish an independent MySQL database and a detailed tutorial for independent da
- The problem of incomplete or partial display of the last recyclerview is solved
- 数据库的复习--1.概述
猜你喜欢

Keeping alive to realize MySQL automatic failover

服务器内存故障预测居然可以这样做!

Leetcode 504. 七进制数

What will the new Fuzhou Xiamen railway bring to Fujian coastal areas?
![[award-winning question] ask Judea pearl, the Turing prize winner and the father of Bayesian networks](/img/0f/01d6e49fff80a325b667784e40bff3.png)
[award-winning question] ask Judea pearl, the Turing prize winner and the father of Bayesian networks

Principle analysis and source code interpretation of service discovery

The charm of SQL optimization! From 30248s to 0.001s

Employee information management system based on Web

INSTALL_FAILED_SHARED_USER_INCOMPATIBLE错误解决方式

Data communication foundation STP principle
随机推荐
In Net 6.0
The fourth week of summer vacation
Leetcode 504. 七进制数
【Halcon视觉】形态学腐蚀
About automatic operation on Web pages
Vs Code configures go locale and successfully installs go related plug-ins in vscode problem: Tools failed to install
Learning about tensor (III)
INSTALL_FAILED_SHARED_USER_INCOMPATIBLE错误解决方式
Wechat H5 payment on WAP, for non wechat browsers
汉诺塔II|汉诺塔4柱
I finished watching this video on my knees at station B
【Halcon视觉】仿射变换
Tableviewcell highly adaptive
Interview shock 68: why does TCP need three handshakes?
IEEE conference upload font problem
Employee information management system based on Web
C language course design Tetris (Part 1)
Transform between tree and array in JS (hide the children field if the child node of the tree is empty)
句句解析js中的完美 / 缓冲运动框架(新手专用)
Principle analysis and source code interpretation of service discovery