安装python2时无法安装_hashlib和_ssl模块


在安装了openssl和openssl-devel的情况下 还是出现如上图所示错误
一些尝试均没用:

  1. 安装openssl-1.0.2u 通过–with-openssl来configure后make -j8
  2. export LD_LIBRARY_PATH=/usr/lib64; ldconfig; ./configure; make -j8

x86,系统版本是openEuler release 22.03 (LTS-SP3)