python pip install psycopg2 install error

后端 未结 10 1704
余生分开走
余生分开走 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 15:47

    If you are uncomfortable copying libraries into your system directory, you can use the DYLD_LIBRARY_PATH environment variable to force the OS to search Postgres's library directory for libssl. E.g.:

    $ DYLD_LIBRARY_PATH=/Library/PostgreSQL/9.4/lib pip install psycopg2
    

    (documented under the dyld man page).

提交回复
热议问题