gpt4 book ai didi

python-3.5 - psycopg2 导入错误 : undefined symbol: PQconninfo

转载 作者:行者123 更新时间:2023-12-03 18:34:58 24 4
gpt4 key购买 nike

无法导入 psycopg2

python控制台输出:

import psycopg2

Traceback (most recent call last): File "", line 1, in File "/home/user/.py_virtualenvs/verb_py3/lib/python3.5/site-packages/psycopg2/init.py", line 50, in

from psycopg2._psycopg import ( # noqa ImportError: /home/user/.py_virtualenvs/verb_py3/lib/python3.5/site-packages/psycopg2/_psycopg.cpython-35m-x86_64-linux-gnu.so: undefined symbol: PQconninfo

最佳答案

安装了 psycopg2-binary 包解决了我的问题。
pip install psycopg2-binary

关于python-3.5 - psycopg2 导入错误 : undefined symbol: PQconninfo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56978734/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com