1 获取下载地址
确定下载的版本,获取下载地址
我一般会下载 tar格式的文件
#下载
wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz
#解压
tar -zxvf Python-3.7.2.tgz
#切换目录
cd Python-3.7.2
#执行文件
./configure
#安装
make && make install
错误1
ModuleNotFoundError: No module named '_ctypes'
make: *** [install] Error 1
解决方法
yum install libffi-devel -y
后重新执行
#执行文件
./configure
#安装
make && make install