且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

找不到 Psycopg2 图像

更新时间:2023-11-17 11:31:04

$ sudo ln -s /Library/PostgreSQL/9.2/lib/libssl.1.0.0.dylib /usr/lib
$ sudo ln -s /Library/PostgreSQL/9.2/lib/libcrypto.1.0.0.dylib /usr/lib

我在处理 Django 时遇到了这个错误.我让它在 Django==1.3 的 virtualenv 上工作,但不是在 Django==1.5 上我必须发出上面的命令.

I encountered this error while working on Django. I have it working on virtualenv with Django==1.3 but not on Django==1.5 where I have to issue the commands above.

在 OS X El Capitan 中,您不能在不禁用系统保护的情况下执行这些链接,但如果您链接到/usr/local/lib 则效果很好

In OS X El Capitan you can't do these links without disabling system protection but it works well if you link to /usr/local/lib