我的 Ubuntu 16.04 怎么还是 Python 2.7.11

2016-04-24 15:12:18 +08:00
 jy02201949

看到大家说 Ubuntu 16.04 的 python 换成了 3.5 ,特地装在虚拟机里试了一把,怎么 python 还是 2.7 的,莫非是我下载或者安装的姿势不对?

16831 次点击
所在节点    Python
34 条回复
pynix
2016-04-24 21:34:50 +08:00
说的是 livecd 因为体积的关系不带 python2 ,软件残酷还是能安装的,而且 /usr/bin/python 的软链接也不会改成 python3.
babytomas
2016-04-25 00:10:42 +08:00
@jy02201949

我前些天还是 Ubuntu 14.04 的时候,系统自带的没有 Python 3 。

然后我安装了 Python 3.5 然后删掉了 /usr/bin/python 然后把 Python 3 软链接过去。

后来系统就无法从源安装软件和更新 。。。。。还好才过了几天 16.04 出了我就直接重装了。
jiang42
2016-04-25 01:35:29 +08:00
@wsdjeg PEP394 , Arch 的这个行为导致了这个 PEP 的产生……
wsdjeg
2016-04-25 07:31:54 +08:00
@jiang42 python2.7 -> 2.8 ->2.9 下一个版本还叫 python2? python 迟早是 3,而且没见过哪个语言这样分的,简直 2
chuan
2016-04-25 08:12:48 +08:00
@wsdjeg 2.7 是 python2 的最后一个版本,不会有 python2.8 的
jiang42
2016-04-25 10:02:01 +08:00
@wsdjeg 然而向我吐槽并没有半点用。。。
poke707
2016-04-25 13:15:35 +08:00
是 3.5 啊,不过是指 Python 3 。
要明白 python2 和 python3 是两个独立的 package 。
haofly
2016-04-25 13:28:00 +08:00
桌面版是 2.7 , server 版是 3 吧
fansgentle
2016-04-25 16:49:42 +08:00
SmiteChow
2016-04-25 17:22:41 +08:00
python3 是独立于 python2 的
robinx
2016-04-26 00:54:12 +08:00
@fansgentle 很有用,已感谢
wsdjeg
2016-04-26 10:34:13 +08:00
@chuan 那么我告诉你 python3 才是 python 的未来, python2 支持协议 2020 就拜拜了,何必顽固守旧
chuan
2016-04-26 12:38:30 +08:00
@wsdjeg 你好像理解错我的意思了吧,我只是单纯的指出 Python 并没有 2.8 。。。 Python3 是未来,常识我懂,谢谢。
forLearn
2016-04-28 08:56:42 +08:00
***@****:~$ python
Python 2.7.11+ (default, Apr 17 2016, 14:00:29)
[GCC 5.3.1 20160413] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
***@****:~$ python3
Python 3.5.1+ (default, Mar 30 2016, 22:46:26)
[GCC 5.3.1 20160330] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
16.04 是自带 python3 的

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/274051

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX