CentOS 6.7安装Python3.4

CentOS 6.7安装Python3.4

1、下载Python3.4安装包

wget https://www.python.org/ftp/python/3.4.4/Python-3.4.4.tgz

2、解压、编译、安装

tar zxvf Python-3.4.4.tgz
cd Python-3.4.4
./configure --prefix=/usr/local/python3
make
make install

3、创建Python3.4的链接(CentOS6.7默认安装的是Python2)

cd /usr/bin/
ln -s /usr/local/python3/bin/python3.4 python3

4、验证

CentOS 6.7安装Python3.4

Python 的详细介绍:请点这里
Python 的下载地址:请点这里

相关推荐