我正在为我的一个讲座工作项目,我需要下载包psycopg2才能使用正在使用的postgresql数据库.不幸的是,当我尝试pip安装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/clang' failed with exit status 1
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)
有谁知道为什么会这样?是因为Sierra没有支持某些套餐吗?提前致谢!
在我的 Django 项目中安装 psycopg2 时
pip install psycopg2==2.7.*
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
psycopg/psycopgmodule.c:689:18: error: incomplete definition of type 'struct _is'
Run Code Online (Sandbox Code Playgroud)
我尝试了以下问题的答案:在安装了 PostgreSQL 12.1 的 MacOS catalina 上,在 virtualenv 中安装 psycopg2 有问题吗? 但我仍然遇到同样的错误