25号更新以后,终端无法启动
Tofloor
poster avatar
assans
deepin
2016-02-27 00:31
Author




怎么办。。
Reply Favorite View the author
All Replies
avatar
assans
deepin
2016-02-27 04:57
#1
难道没人遇到吗!
Reply View the author
avatar
tangjinjin
deepin
2016-02-27 05:01
#2
sudo apt-get update && sudo apt-get dist-upgrade -y
sudo apt autoremove
Reply View the author
avatar
assans
deepin
2016-02-27 05:50
#3
https://bbs.deepin.org/post/37495
sudo apt-get update && sudo apt-get dist-upgrade -y
sudo apt autoremove

没用。。。好像不是这个的问题,我自己更新过python不知道是不是这个原因
Reply View the author
avatar
cxbii
deepin
2016-02-29 21:28
#4
https://bbs.deepin.org/post/37495
没用。。。好像不是这个的问题,我自己更新过python不知道是不是这个原因 ...

你是不是安装了python3,而且设置为默认版本了?

没错,就是python版本的问题,深度终端是python2的
Reply View the author
avatar
u855697021
deepin
2016-03-01 01:14
#5
https://bbs.deepin.org/post/37495
你是不是安装了python3,而且设置为默认版本了?

没错,就是python版本的问题,深度终端是python2的 ...

如果是这样,不知可否以后深度终端改成/usr/bin/env python2启动?
Reply View the author
avatar
cxbii
deepin
2016-03-01 21:47
#6
https://bbs.deepin.org/post/37495
如果是这样,不知可否以后深度终端改成/usr/bin/env python2启动?

嗯,要不你试试吧。

我这没环境,我没法测试
Reply View the author
avatar
u855697021
deepin
2016-03-01 21:54
#7
https://bbs.deepin.org/post/37495
嗯,要不你试试吧。

我这没环境,我没法测试

实测第一行改成
#! /usr/bin/env python2.7
之后还能正常运行...
而且默认python改成3.5也不会有问题了...

建议深度官方所有python的软件都这样明确注明版本...
Reply View the author
avatar
cxbii
deepin
2016-03-01 21:56
#8
https://bbs.deepin.org/post/37495
实测第一行改成
#! /usr/bin/env python2.7
之后还能正常运行...

额,这个我会上报。

其实现在用python 3的程序不多吧。。
Reply View the author