Python crashing on MacOS 10.15 Beta (19A582a) with “/usr/lib/libcrypto.dylib”

前端 未结 13 566
星月不相逢
星月不相逢 2020-12-12 15:47

I ran my Django project with new macOS Catalina and was running fine.
I installed oh_my_zsh then I tried to run the same project it is crashing with the following errors

13条回答
  •  一生所求
    2020-12-12 16:28

    I just came across the same problem and felt a bit uncomfortable to manually link things around.

    I was able to solve the problem by simply

    1. Installing openssl via homebrew:
      brew install openssl
      
    2. Pointing towards the dynamic libraries from openssl via DYLD_LIBRARY_PATH:
      export DYLD_LIBRARY_PATH=/usr/local/opt/openssl/lib:$DYLD_LIBRARY_PATH
      

    I've just added that line to my .zshrc.

    Edit: According to this question, the usage of DYLD_FALLBACK_LIBRARY_PATH might be preferable over DYLD_LIBRARY_PATH.

    Edit 2: As mentioned in a comment below, this should probably be the accepted answer. Simply reinstall the cryptography package.

提交回复
热议问题