本文主要介绍了centos7 安装如何python3 一、安装、更新所需的依赖包 yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc* make -y 二、下载python安装包 wget https://www.python.org/ftp/python/3.7.6/Python-3.7.6.tgz 三、安装python3.7.6 1.解压安装包: tar -zxvf Python-3.7.6.tgz 2.切换到解压目录下,创建