在 Linux服务器中安装 Python 3.6

[root@VM_58_11_centos ~]# wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz 获取安装包 [root@VM_58_11_centos ~]# tar -zxf Python-3.6.1.tgz 解压缩 [root@VM_58_11_centos ~]# cd Python-3.6.1 定位到文件夹

#查看安装包文件 [root@VM_58_11_centos Python-3.6.1]# 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.1]# ./configure 添加配置 [root@localhost Python-3.6.1]# make 编译源码 [root@localhost Python-3.6.1]# make install 执行安装

评论已关闭.