CentOS 7 安装python3.7.1
安装wget
yum -y install wget
创建一个download目录用于下载各种安装包
mkdir download
切换到刚创建的download目录中
cd download
下载python3.7.1
wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz
解压
tar -zxvf Python-3.7.1.tgz
切换到刚刚解压得到得文件夹
cd Python-3.7.1
安装配置
./configure
注意,我这里报错:no acceptable C compiler found in $PATH
这是因为我的系统里面没有GCC(我现在还不知道GCC是什么