python3.7 安装

1 获取下载地址

python官网下载地址

确定下载的版本,获取下载地址

我一般会下载 tar格式的文件

python3.7下载地址

#下载
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 

猜你喜欢

转载自blog.csdn.net/qq_26445699/article/details/86228264