如何从Ubuntu 18.04完全删除Python 3.6 [英] How to remove Python 3.6 completely from Ubuntu 18.04

查看:2474
本文介绍了如何从Ubuntu 18.04完全删除Python 3.6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Ubuntu 18中默认安装了Python 2.7和3.6.但是我希望将Anaconda Python与conda软件包管理器一起使用.为了避免任何冲突,我希望完全删除默认的Python 3.6.有什么办法吗?请帮忙.

Both Python 2.7 and 3.6 are installed by default in Ubuntu 18. But I wish to use the Anaconda Python with conda package manager. To avoid any conflicts I wish to completely remove the default Python 3.6. Are there any way to do that? Please help.

推荐答案

Ubuntu 18.04需要python 3.6才能运行.如果删除python 3.6,则重启后将无法登录.即使卸载python 3.6之后,Ubuntu仍将具有最小的python 3.6.因此您必须将两者都删除.完成此操作后,您将得到一个看起来像这样的错误.

Ubuntu 18.04 requires python 3.6 to function. If you remove python 3.6, you won't be able to log in after a restart. Ubuntu will still have python 3.6minimal, even after uninstalling python 3.6. so you will have to remove both. Once that is done, you'll get an error that looks like this.

https://itsfoss.com/failed-to- start-session-ubuntu-14-04/

如果破坏Ubuntu,则可以执行上述步骤.

You can follow the above steps if you break Ubuntu.

这篇关于如何从Ubuntu 18.04完全删除Python 3.6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆