编译安装Python3.7

一、安装依赖

yum -y install bzip2-devel openssl-devel libffi-devel rsync

Mac OS系统

brew install openssl

二、下载源码包

wget https://repo.huaweicloud.com/python/3.7.9/Python-3.7.9.tar.xz

三、编译安装

cd Python-3.7.9
./configure  --prefix=/usr/local/python37/ --enable-optimizations --with-openssl=/usr/local/openssl --with-openssl-rpath=auto
make  && make install
讨论数量: 0

请勿发布不友善或者负能量的内容。与人为善,比聪明更重要!