When I try to run the command:
import psycopg2
I get the error:
ImportError: dlopen(/Users/gwulfs/anaconda/lib/python2.7/si
I am using Mac OS Sierra: and got this error:
Library not loaded: libssl.1.1.dylib
I found this library in
/Library/PostgreSQL/11/lib
I found this solution in internet:
export DYLD_LIBRARY_PATH=/Library/PostgreSQL/11/lib
But this is not a permanent solution. As I have to run the above command whenever I restart my server.
Add the line:
export DYLD_LIBRARY_PATH=/Library/PostgreSQL//lib
to
~/.bash_profile