参考资料
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.

本文介绍了如何在Linux系统中编译安装Python 3.6.0,并提供了在已安装Python 2.7.6的情况下切换版本的方法。首先检查系统中是否已有Python版本,然后根据需求进行安装或切换。
1282

被折叠的 条评论
为什么被折叠?



