请问python怎么升级
Tofloor
poster avatar
xvjianzhe
deepin
2015-10-26 04:35
Author
Deepin的默认安装的deepin2.7.x 我想升级到3.x该怎么升级呢?请求前辈大神指导,网上看到前辈的教程本来打算照做,但是后面那位前辈说会影响yum管理器,deepin我还没研究透,不知道有没有yum,但是我知道它有apt-get 管理器,这个会影响吗?下面是我查到的升级方式:

安装Python 3.4.3

1、解压Python 3.4.3

tar -xf Python-3.4.3.tgz

2、进入目录: cd Python-3.4.3/

3、安装Python 3.4.3

a、配置./configure

b、编译make

c、安装make install




Reply Favorite View the author
All Replies
avatar
ldsink
deepin
2015-10-26 04:44
#1
你可以自己编译安装 Python3.4.3,甚至 Python3.5,但是不能更改系统默认的 python 环境。
深度终端等很多系统软件都是使用默认 Python 的,都是基于 2.7,直接改变 /usr/bin 下的 python 文件指向会带来一系列问题。
你可以将 Python3.5 安装到系统,但是需要在使用的时候指明是 Python 3.5。
Reply View the author
avatar
ddb_01
deepin
2015-10-26 04:46
#2
deepin是有安装了python3的,只不过默认是python2。
Reply View the author
avatar
不避风云
deepin
2015-10-26 06:19
#3
你输入python然后tab键,可以看到安装了哪些python
Reply View the author
avatar
lierenchina
deepin
2016-06-11 02:32
#4
https://bbs.deepin.org/post/32912
你输入python然后tab键,可以看到安装了哪些python

很管用哦
Reply View the author
avatar
Feng Yu
deepin
2016-06-11 04:57
#5
python3即可
Reply View the author