Trying to resolve an OpenSSL version issue I'm having.
It seems that I have three different versions of OpenSSL on my Mac.
python -c "import ssl; print ssl.OPENSSL_VERSION"
OpenSSL 0.9.7m 23 Feb 2007
OpenSSL 1.0.1h 5 Jun 2014
OpenSSL 1.0.2h 3 May 2016
You are linking against OpenSSL 0.9.8, which is no longer *
RuntimeError: You are linking against OpenSSL 0.9.8, which is no longer support by the OpenSSL project. You need to upgrade to a newer version of OpenSSL.
You can install a version of python that uses a newer version of openssl.
First you can brew install a new version of open SSL
brew update brew install openssl brew link --force openssl
You should see a newer version with
openssl version -a
Then you can install a different version of python which uses that newer version of openssl. If you use pyenv, that would be:
CFLAGS="-I$(brew --prefix openssl)/include" \ LDFLAGS="-L$(brew --prefix openssl)/lib" \ pyenv install -v 3.4.3
You can find more information about installing a version of python with a brew installed version of openssl here: https://github.com/yyuu/pyenv/wiki/Common-build-problems