[Django]-Pip install openssl/aes.h error and libxml/xmlversion.h error (osx)

2👍

I did two things to fix this.

brew link --force openssl

and

xcode-select --install

2👍

Now, unfortunately, we can’t brew link --force openssl. So you can also set environment variables like below:

export LD_LIBRARY_PATH=/usr/local/opt/openssl/lib:$LD_LIBRARY_PATH
export CPATH=/usr/local/opt/openssl/include:$LD_LIBRARY_PATH

And do pip install.

👤ueneid

Leave a comment