python3.5安装,与2.6共存

在centos上安装Python3.5,

1、下载python 3源码
# cd /usr/local/src/
# wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz

2、解压Python-3.5.1.tgz
# tar -xzvf Python-3.5.0.tgz

3、编译安装Python-3.5.1

# cd Python-3.5.1

./configure

编译命令:
# make
安装命令:

# make install


# python3
Python 3.5.1 (default, Dec 22 2015, 08:46:52) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.

标签: python3

添加新评论