2 make
3 make install
注意
在执行./configure --prefix=/usr/local/python3 ,时出现
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux
checking for --without-gcc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/local/Python/Python-3.3.0':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
执行yum -y install gcc 后在安装执行上述命令即可
就会显示出python的新版本信息
1 Python 3.1.2 (r312:79147, Oct 21 2012, 01:03:21))
2 [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
3 Type "help", "copyright", "credits" or "license" for more information.
4 >>>