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....

  1. install python 2.7.13 official site, installs default python, upgrading old python system wide.

https://www.python.org/downloads/mac-osx/

  1. upgrade openssl after python install, effect system wide.

sudo pip install --upgrade pyopenssl

  1. 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 ).

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo