参考资料
Linux 下编译安装 python3
安之前最好看看系统里是否已经有python2 和 python 3
$ which python
$ which python3
$ python -v
$ python3 -v
$ python
>>> quit()
$ python3
>>> quit()
输入后发现已经都有了,那就不用安了
mary@administrator-ThinkStation-P710:~$ python3
Python 3.4.3 (default, Nov 17 2016, 01:08:31)
[GCC 4.8.4] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
mary@administrator-ThinkStation-P710:~$ python2
Python 2.7.6 (default, Oct 26 2016, 20:30:19)
[GCC 4.8.4] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.