Updating openssl in python 2.7

前端 未结 6 1301
醉酒成梦
醉酒成梦 2020-11-22 15:17

wondering if someone may please explain how openssl works in python2.7. I\'m not sure if python got its own openssl or picks it up from local machine/env?

let me exp

6条回答
  •  礼貌的吻别
    2020-11-22 16:09

    SOLVED NO HACKS, none of the above worked for me. I ended up taking a simpler and uncomplicated approach....

    1. Install python 2.7.13 from the official site, it actually installs as the default python, automatically upgrading the old python system wide ( yes! ).

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

    1. Upgrade openssl after the python install. Updating it for system python ( yes! ).

    sudo pip install --upgrade pyOpenSSL

    1. You will have to re-install all your python modules ( because you replaced python ), I strongly recommend using pip. After a few minutes of pip installs my default OSX python was upgraded, I had openssl upgraded, and I had all my modules ( including django running ).

提交回复
热议问题