当你遇到 import psycopg2 报错时,可以按照以下步骤进行排查和解决: 确认psycopg2库是否已经正确安装 首先,你需要确认 psycopg2 库是否已经被正确安装在你的Python环境中。你可以通过以下命令来检查: bash pip show psycopg2-binary 如果系统返回了关于 psycopg2-binary 的详细信息,说明库已经安装。如果没有返回任何信息...
When testing inside the package, installing only psycopg2-binary works fine. But when I need to use it in my another project, like poetry add imserv --path ../imserv It complains that I don't have psycopg2 installed. Now, I can installed psycopg2 to resolve the issue, but it comes ...
psycopg2 2.7.6.1 psycopg2-binary 2.7.6.1 ptyprocess 0.6.0 py 1.5.4 pyasn1 0.4.1 PyBrain 0.3.3 pycosat 0.6.3 pycparser 2.18 pycrypto 2.6.1 pydot 1.4.1 pydot-ng 2.0.0 pydotplus 2.0.2 pyecharts 0.5.11 pyecharts-javascripthon 0.0.6 pyecharts-jupyter-installer 0.0.3 pyecharts-snapshot ...
#if you have installed psycopg2-binary import psycopg2 File ~/Library/Python/3.9/lib/python/site-packages/psycopg2/__init__.py:51 from psycopg2._psycopg import ( # noqa ImportError: dlopen(/Users/my_username/Library/Python/3.9/lib/python/site-packages/psycopg2/_psycopg.cpython-39-darwin.so, ...
解决方法: ldd site-packages/psycopg2/_psycopg.so|grep libpq 确保libpq.so的版本和running 的pg-server 的libpq.so 一致 from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWIDImportError: libpq.so.5: cannot open shared object file: No such file or directory ...
psycopg2-binary==2.9.3 Flask-SQLAlchemy==2.5.1 flask-restx==0.5.1 qrcode~=7.3.1 PyPDF2==2.6.0 reportlab~=3.6.10 WTForms~=3.0.1 flask-bootstrap==3.3.7.1 flask-wtf==1.0.1 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 解决办法 ...
description = "psycopg2 - Python-PostgreSQL Database Adapter" optional = false python-versions = ">=3.7" files = [ {file = "psycopg2-binary-2.9.9.tar.gz", hash = "sha256:7f01846810177d829c7692f1f5ada8096762d9172af1b1a28d4ab5b77c923c1c"}, ...
> from psycopg2._psycopg import ( # noqa > ImportError: > dlopen(/Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/_ > psycopg.cpython-38-darwin.so, 2): Symbol not found: _PQbackendPID > Referenced from: > /Users/maryam.yousaf/Documents/venv/lib/python3.8/site-pack...
I'm getting a weird error when I try to import psycopg2. Using Python 3.7.7 ; pip version: pip 20.1 from C:\Users\blah\AppData\Local\Programs\Python\Python37\lib\site-packages\pip (python 3.7) Downloaded psycopg2 using pip $ python -m pi...
charset-normalizer==2.1.1 idna==3.4 influxdb-client==1.33.0 protobuf==4.21.9 psycopg2-binary==2.9.4 python-dateutil==2.8.2 reactivex==4.0.4 requests==2.28.1 six==1.16.0 typing_extensions==4.4.0 urllib3==1.26.12 Author rickspencer3 commented Nov 3, 2022 Ok, so it looks like ...