Import psycopg2 Library not loaded: libssl.1.0.0.dylib

前端 未结 20 2544
囚心锁ツ
囚心锁ツ 2020-11-28 21:02

When I try to run the command:

import psycopg2

I get the error:

ImportError: dlopen(/Users/gwulfs/anaconda/lib/python2.7/si         


        
20条回答
  •  悲&欢浪女
    2020-11-28 21:34

    Do the following to resolve Library not loaded:libssl.1.0.0.dylib error if you have openssl in /usr/local/Cellar directory

    1. sudo cp /usr/local/Cellar/openssl/<<version>>/lib/libssl.1.0.0.dylib /usr/lib

    2. After doing step 1, if you still get Library not loaded:libcrypto.1.0.0.dylib error. Do the following
          sudo cp /usr/local/Cellar/openssl/<<version>>/lib/libcrypto.1.0.0.dylib /usr/lib

提交回复
热议问题