Psycopg2 image not found

后端 未结 20 1740
无人及你
无人及你 2020-11-29 18:04

Trying to setup postgres with the postgres mac app and hit this error, which I haven\'t been able to solve. Any thoughts?

    ImportError: dlopen(/Users/Crai         


        
20条回答
  •  忘掉有多难
    2020-11-29 18:39

    Under Mac OS X 10.11 (El Capitan), /usr/lib is read only for root user. You'll get a ln: /usr/lib/libssl.1.0.0.dylib: Operation not permitted error You need to use /usr/local/lib instead of /usr.

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

提交回复
热议问题