1. 安装依赖包 yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make 2. 开始编译安装python3 yum install libffi-devel -y 注意:如果是Python3.7版本。首先先安装libffi-devel包否则python3.7会报如下第四步中ModuleNotFoundError: No module named ‘_ctypes错误 3. 去官网下载编译安装包或者直接执行以下命令下载 wget h