安装python
2017-09-18 21:37 绿贝 阅读(228) 评论(0) 编辑 收藏 举报个人用的系统是CentOS7 里面默认安装了比较老的python2.7
下载最新版python
wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz
如果没有wget,请先安装wget
yum install wget
解压
tar -xvf Python-3.6.2.tar.xz
[root@VM_58_11_centos ~]# cd Python-3.6.2 定位到文件夹 #查看安装包文件 [root@VM_58_11_centos Python-3.6.2]# ls aclocal.m4 config.sub configure.ac Grammar install-sh LICENSE Makefile.pre.in Modules Parser PCbuild Python setup.py config.guess configure Doc Include Lib Mac Misc Objects PC pyconfig.h.in README Tools [root@localhost Python-3.6.2]# ./configure 添加配置 [root@localhost Python-3.6.2]# make 编译源码 [root@localhost Python-3.6.2]# make install 执行安装