竹影横扫窗

导航

 

1. from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWIDImportError: libpq.so.5: cannot open shared object file: No such file or directory 解决办法

按照网络上提供的方法:

参考:https://blog.csdn.net/weixin_42245157/article/details/103808326

使用作者提供的第二种方法后,报错如2

2. undefined symbol: PQencryptPasswordConn 解决办法

pip install psycopg2-binary

 

 解决问题。

 

3. ImportError: /lib64/libgssapi_krb5.so.2: symbol krb5_ser_context_init, version krb5_3_MIT not defined in file libkrb5.so.3 with link time reference

也通过pip install psycopg2-binary解决

posted on 2022-07-01 14:32  竹影横扫窗  阅读(504)  评论(0编辑  收藏  举报