centos 7下安装python3 最新版本


2023-05-16 18:33:37

安装epel

  • sudo yum install epel-release

安装openssl 11

  • sudo yum install openssl11 openssl11-devel -y

enable openssl11

  • sudo mv /usr/include/openssl /usr/include/openssl10
  • sudo mv /usr/include/openssl11 /usr/include/openssl
  • sudo rm /usr/lib64/libssl.so
  • sudo ln -s /usr/lib64/libssl.so.11 /usr/lib64/libssl.so
  • sudo rm /usr/lib64/libencrypto.so
  • sudo ln -s /usr/lib64/libencrypto.so.11 /usr/lib64/libencrypto.so

build python

  • ./configure
  • make
  • sudo make install