Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
默认的Python
Theme area
967
views ·
7
replies ·
To
floor
Go
hh5blxj
deepin
2020-05-24 07:08
Author
在前面的文章中,教了大家如何去安装Python3.9 (Deepin安装最新版python),那么我如果从此以后都希望我电脑中输入python就是python3.9, 输入python3也是python3.9.
那么有种简单的方法
>> sudo update-alternatives --install /usr/bin/python python /usr/local/bin/python3.9 3
其用法为:
update-alternatives: --install <链接> <名称> <路径> <优先级>
我把优先级设为3. 你也可以设定为任意值。如果输入python,优先级最大的那个会被调用。
更多用法请参考linux公社
Reply
Like 0
Favorite
View the author
Comments
abcfy2
2020-05-24 07:32
极不推荐,谁这么搞系统崩坏后果自负
All Replies
Feng Yu
deepin
2020-05-24 07:31
#1
又一个作大死的,你这么作死别害别人,建议你自己删帖。看到这种误人子弟的帖子瞎J8乱扯一通我就火大
Reply
Like 0
View the author
neko
deepin
Ecological co-builder
Q&A Team
2020-05-24 07:47
#2
不推荐这种做法,建议用anaconda
Reply
Like 0
View the author
SamLukeYes
deepin
2020-05-24 08:03
#3
python3.9还是alpha你敢用?arch的python版本都才3.8.3
Reply
Like 0
View the author
观摩
deepin
2020-05-24 08:26
#4
python 默认2.x,很多系统级的应用都是python 2.x 版本,这么搞,系统崩掉的可能性太高了
Reply
Like 0
View the author
bjhjf007
deepin
2020-05-24 19:04
#5
有什么是3.7实现不了的?
Reply
Like 0
View the author
Breeze
deepin
2020-05-24 20:40
#6
建议使用python虚拟环境作为开发用,因为目前系统很多东西依赖于python版本,不建议随便动系统python版本。
Reply
Like 0
View the author
SamLukeYes
deepin
2020-05-24 20:59
#7
https://bbs.deepin.org/post/194966
有什么是3.7实现不了的?
f-string的某些进(ji)阶(lei)用法
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
WiFi Drivers
Popular Events
More
那么有种简单的方法
>> sudo update-alternatives --install /usr/bin/python python /usr/local/bin/python3.9 3
其用法为:
update-alternatives: --install <链接> <名称> <路径> <优先级>
我把优先级设为3. 你也可以设定为任意值。如果输入python,优先级最大的那个会被调用。
更多用法请参考linux公社