python - Issues upgrading OpenSSL to 1.0.2 on Mac(Yosemite) -
i'm running python 2.7.11 , trying upgrade openssl version 0.9.8 1.0.2
i ran command brew install openssl
, things seemed install correctly. however, openssl has not been updated
$ openssl version openssl 0.9.8zg 14 july 2015 $ brew install openssl warning: openssl-1.0.2h_1 installed $ brew link --force openssl warning: linked: /usr/local/cellar/openssl/1.0.2h_1 relink: brew unlink openssl && brew link openssl
it looks things have been installed i'm not familiar steps take things squared away.
edit updated path per this post /usr/local/bin came before /usr/bin , following:
$ openssl version openssl 1.0.2h 3 may 2016
however, in python it's running old version
$ python -c "import ssl; print ssl.openssl_version" openssl 0.9.8zg 14 july 2015
solved no hacks, none of above worked me. ended taking simpler , uncomplicated approach....
- install python 2.7.13 official site, installs default python, upgrading old python system wide.
https://www.python.org/downloads/mac-osx/
- upgrade openssl after python install, effect system wide.
sudo pip install --upgrade pyopenssl
- you have re-install python modules ( because replaced python ), recommend using pip. after few minutes of pip installs default osx python upgraded, had openssl upgraded, , had modules ( including django running ).