1.查看Python版本: python -V

Python2.7升级到Python3.5

2.下载Python 3.5版本:wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz

Python2.7升级到Python3.5

3.解压:tar -zxvf Python-3.5.2.tgz

Python2.7升级到Python3.5

4.配置:./configure

Python2.7升级到Python3.5

5.编译(编译时间较长):make

Python2.7升级到Python3.5

6.安装:make install

Python2.7升级到Python3.5

7.关联:

先备份原来Python 2.7

Python2.7升级到Python3.5

再关联新Python 3.5

Python2.7升级到Python3.5

8.查看版本:python -V

Python2.7升级到Python3.5






相关文章: