Python3.7安装:
下载安装包:
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz
安装编译器:
yum -y install gcc gcc-c++
安装python3依赖:
yum -y install zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel xz xz-devel
python3.7以上版本还需安装此依赖
yum -y install libffi-devel
安装:
tar -zxvf Python-3.7.0.tgz
cd Python-3.7.0/
./configure --prefix=/usr/local/python3
(将python3安装到/Usr/local/python3路径下)
make && make install
创建软连接:
作者:代码帮
来源:CSDN
原文:https://blog.csdn.net/ITLearnHall/article/details/82260785
版权声明:本文为博主原创文章,转载请附上博文链接!