当前位置:网站首页>解决 psycopg2.NotSupportedError: PQconninfo not available in libpq < 9.3
解决 psycopg2.NotSupportedError: PQconninfo not available in libpq < 9.3
2022-06-26 07:36:00 【dangfulin】
环境:
[[email protected] ~]$ cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[[email protected] ~]$ psql -V
psql (PostgreSQL) 9.2.24
问题:
在运行 pgadmin4.py 启动项目时报错:
pgadmin4 web 页面显示:
后端服务显示:
psycopg2.NotSupportedError: PQconninfo not available in libpq < 9.3
- 关于 libpq 的信息可参考 PostgreSQL 9.2.24 Documentation:Chapter 31. libpq - C Library,或者 PostgreSQL 9.3.1 中文手册:章 31. libpq - C 库。
解决:
[[email protected] pgadmin4]$ pip install psycopg2-binary
Collecting psycopg2-binary
Using cached psycopg2_binary-2.9.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB)
Installing collected packages: psycopg2-binary
Successfully installed psycopg2-binary-2.9.3
- 我记得之前是装了 requirements.txt 中的依赖的,但显然有问题,再 pip install 就行了。
再次启动项目,OK!
边栏推荐
- B站增量数据湖探索与实践
- 基于sanic的服务使用celery完成动态修改定时任务
- Item2 installation configuration and environment failure solution
- QPS
- SQL
- Mxnet implementation of network in Nin network
- systemctl php配置文件
- 5,10,15,20-tetra (4-methoxycarbonylphenyl) porphyrin tcmpp purple crystal; Meso-5,10,15,20-tetra (4-methoxyphenyl) porphyrin tmopp|zn[t (4-mop) p] and co[t (4-mop) p] complexes
- Installation homebrew error summary
- JMeter stress test web agent local interface test [teaching]
猜你喜欢

快速找到优质对象的5种渠道,赶紧收藏少走弯路

The "big grievances" in the workplace are not only physically tired, but also mentally emptied

OSPF design principles, commands take H3C as an example

一文搞懂Glide,不懂来打我

一文分析EventBus-事件总线的使用方法和实现原理

Nine hours, nine people and nine doors (01 backpack deformation) - Niuke

Web technology sharing | webrtc recording video stream

少年,你可知 Kotlin 协程最初的样子?

卡尔曼滤波器_Recursive Processing
![JMeter stress test web agent local interface test [teaching]](/img/6d/a8b3cd1ca55993fe59c066f95ef093.png)
JMeter stress test web agent local interface test [teaching]
随机推荐
In interface testing, several methods to verify the success of deleting interfaces
Jemter 壓力測試 -基礎請求-【教學篇】
Oracle creates stored procedures with return values and executes SQL calls
Cache usage
B站增量数据湖探索与实践
php array_merge详解
$a && $b = $c what???
Pycharm settings
Yyds dry inventory Druid connection pool usage
Solution to the problem of multi application routing using thinkphp6.0
[UVM practice] Chapter 2: a simple UVM verification platform (4) the ultimate masterpiece of UVM: sequence
Installation homebrew error summary
快速找到优质对象的5种渠道,赶紧收藏少走弯路
Jemter 压力测试 -可视化工具支持-【安装篇】
Request&Response
Error reported by using two-dimensional array [[]] in thymeleaf: could not parse as expression
Alkynyl crosslinked porphyrin based polyimide materials (ppbpi-h-cr, ppbpi Mn cr.ppbpi Fe Cr); Metalloporphyrin based polyimide (ppbpi Mn, ppbpi FE) supplied by Qiyue
Mxnet implementation of network in Nin network
Attention mechanism yyds, AI editor finally bid farewell to P and destroyed the whole picture
Calculate division in Oracle - solve the error report when the divisor is zero