在CentOS7下,默认安装的就是python2.7,我现在来教大家如何安装python3:
1、首先安装python3.6可能使用的依赖
# yum -y install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel zlib-devel
2、下载python源码包,地址为https://www.python.org/downloads/source/,然后通过xftp上传上去,或者直接使用wget命令,wget https://www.python.org/ftp/python/3.6.1/Python-3
1