python pip install psycopg2 install error

后端 未结 10 1698
余生分开走
余生分开走 2020-11-27 15:31

I did a simple pip install psycopg2 on mac system. It installed fine, but when I try to use psycopg2 I get the error:

Reason: Incompatible libra         


        
10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-27 16:09

    I had similar problem on my Mac OS High Sierra.

    ImportError: dlopen(/Users/chicha/Projects/CTMR/sample_registration/romans_env/lib/python3.7/site-packages/psycopg2/_psycopg.cpython-37m-darwin.so, 2): Library not loaded: /opt/local/lib/libssl.1.0.0.dylib

    But after "pip install postgres" it's work fine. According to pip show - "postgres is a high-value abstraction over psycopg2". While installing it's also installed psycopg2-binary and psycopg2-pool. So, all together they have repaired the situation somehow.

提交回复
热议问题