redhat安装python3.7

下载并解压:

1 wget https://www.python.org/ftp/python/3.7.5/Python-3.7.5.tgz
2 tar -xzvf Python-3.7.5.tgz

进入目录:

cd Python-3.7.5

编译:

./configure --prefix=/usr/local/python3

安装:

make && make install

缺少依赖包导致:

执行:yum -y install zlib* 安装依赖包即可

你可能感兴趣的:(redhat安装python3.7)