Building Python 3.7.1 - SSL module failed

前端 未结 6 1537
北荒
北荒 2020-12-02 21:31

Building Python 3.7 from source runs into following error:

Failed to build these modules:
_hashlib              _ssl                                     

Co         


        
6条回答
  •  一向
    一向 (楼主)
    2020-12-02 21:41

    On CentOS / Linux 2 if you install openssl using

    sudo yum install -y openssl-devel
    

    then the library is installed to /usr/local/lib64, and you can configure Python as follows:

    ./configure --enable-shared --with-openssl=/usr/local/lib64
    

    there are step-by-step instructions here: How to Install Latest (2020) Django to AWS EC2 Linux 2 Instance and Serve w/ Apache Hello World

提交回复
热议问题