2.安装postgres 的依赖 yum install postgresql-devel 3.再安装 pip install psycopg2-binary OK
在确认pg_config可用后,你可以再次尝试安装psycopg2: bash pip3 install psycopg2 如果你希望避免编译安装过程,也可以考虑使用预编译的二进制包psycopg2-binary: bash pip3 install psycopg2-binary 如果问题依旧,检查环境变量配置是否正确: 如果上述步骤仍然无法解决问题,你需要检查环境变量是否配置正确。确保pg_config...
Error ERROR: Could not find a version that satisfies the requirement psycopg2-binary==2.9.9 (from mypackage) (from versions: none) ERROR: No matching distribution found for psycopg2-binary==2.9.9 但是,手动安装psycopg2-binary时没有错误: pip install psycopg2-binary==2.9.9 一旦安装了psycopg2-binar...
ERROR: Command errored out with exit status 1:command: /opt/AN/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lkf6b0y5/psycopg2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-lkf6b0y5/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"...
ERROR: Command errored out with exit status1: command:/usr/bin/python3 -u -c'import sys, setuptools, tokenize; sys.argv[0] ='"'"'/tmp/pip-install-xr58_vty/psycopg2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xr58_vty/psycopg2/setup.py'"'"';f=getattr(tokenize,'"'"'ope...
我正在为我的一个讲座做一个项目,我需要下载包 psycopg2 以便使用正在使用的 postgresql 数据库。不幸的是,当我尝试 pip install psycopg2 时,弹出以下错误: ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command '/usr/bin/...
我无法在我的 M1 Mac 上安装 psycopg2,我使用的是 pip3。 当我尝试使用pip3installpsycopg2安装时,输出如下: ERROR: Command errored out with exit status 1: command: /opt/homebrew/opt/python@3.9/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/m5...
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py python get-pip.pypip install psycopg2-binary 重新安装下python2的pip
pip install psycopg2-binary curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py python get-pip.py pip install psycopg2-binary 重新安装下python2的pip 用一个例子来演示会更加清晰
$ pip install psycopg2==2.8.4ld:librarynotfoundfor-lssl clang:error: linker command failedwithexitcode1(use-vtosee invocation)error: command'xcrun' failedwithexitstatus1 错误原因: 因为老版本中自带的预编译 wheel 二进制可能会造成崩溃问题,官方决定 psycopg2 从 2.8 版本开始将不再包含预编译二进制,...