备忘

报个这个错

    ld: library not found for -lssl
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'gcc' failed with exit status 1

libssl.dylib 和 libcrypto.dylib 的版本问题

奇技淫巧

用brew安装的openssl的两个库来替代系统库

brew install openssl
env LDFLAGS="-I/usr/local/Cellar/openssl/x.x.x/include -L/usr/local/Cellar/openssl/x.x.x/lib" pip3 install psycopg2

好了