在python连接PG或者KINGBASE时,报错:SCRAM authentication requires libpq version 10 or above
已安装版本:
psycopg2 2.9.7
解决:
- 下载最新版本的psycopg2-binary
- 卸载原来psycopg2
pip3 uninstall psycopg2
- 安装psycopg2-binary
-
cd psycopg2-binary-2.9.9 python3 setup.py install