Skip to content

Instantly share code, notes, and snippets.

@sunliwen
Last active March 8, 2021 23:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sunliwen/099a80847776785f24f7 to your computer and use it in GitHub Desktop.
Save sunliwen/099a80847776785f24f7 to your computer and use it in GitHub Desktop.
On Mac - fatal error: 'openssl/aes.h' file not found #include <openssl/aes.h>
# Install pip install cryptography, path issue with openssl/aes.h will occur. The reason is Apple deprecated openssl and the compiler can't find the one installed by homebrew.
# So the following line will help.
env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment