在 m1 上安装 psycopg2cffi 时出现问题
有人尝试在 mac m1 上安装 psycopg2cffi 吗?
psycopg2 对我来说效果很好, 对于 psycopg2cffi 我收到此错误
我正在执行
pip3 install psycopg2cffi
然后得到
ld: warning: dylib (/opt/homebrew/lib/libpq.dylib) was built for newer macOS version (12.0) than being linked (11.0)
ld: warning: ignoring file /opt/homebrew/lib/libpq.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Traceback (most recent call last):
File "/private/var/folders/v3/zqxmc7t138n9_qn7n38680dm0000gn/T/pip-install-swb5z_gs/psycopg2cffi_25da3ba0978a417b8f4df8a82525c22f/psycopg2cffi/_impl/libpq.py", line 2, in <module>
from psycopg2cffi._impl._libpq import ffi, lib as libpq
ModuleNotFoundError: No module named 'psycopg2cffi._impl._libpq'
Does anyone try to install psycopg2cffi on mac m1?
psycopg2 works fine for me,
for psycopg2cffi I got this error
I'm doing
pip3 install psycopg2cffi
and then get
ld: warning: dylib (/opt/homebrew/lib/libpq.dylib) was built for newer macOS version (12.0) than being linked (11.0)
ld: warning: ignoring file /opt/homebrew/lib/libpq.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64
Traceback (most recent call last):
File "/private/var/folders/v3/zqxmc7t138n9_qn7n38680dm0000gn/T/pip-install-swb5z_gs/psycopg2cffi_25da3ba0978a417b8f4df8a82525c22f/psycopg2cffi/_impl/libpq.py", line 2, in <module>
from psycopg2cffi._impl._libpq import ffi, lib as libpq
ModuleNotFoundError: No module named 'psycopg2cffi._impl._libpq'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论