Install python ssl module on linux without recompiling

前端 未结 2 1975
有刺的猬
有刺的猬 2021-02-20 07:10

Is it possible to install the SSL module for python on a linux box that already has OpenSSL installed without recompiling python? I was hoping it would be as simple as copying

2条回答
  •  后悔当初
    2021-02-20 07:43

    NOTE: Python >= 2.6 already has SSL support built-in, there's no need to install ssl package.

    Install package from pypi:

    pip install ssl
    

    If you're missing pip command, install it for your distribution:

    RedHat/Centos:

    yum install python-pip
    

    Debian/Ubuntu

    apt-get install python-pip
    

提交回复
热议问题