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
- Installing openssl via homebrew:
brew install openssl
- 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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…