简体   繁体   English

从 Ubuntu 20.04.2 LTS 卸载 python3.8

[英]Uninstall python3.8 from Ubuntu 20.04.2 LTS

This is a pretty dumb question, but is ubuntu dependent on Python 3.8 ?这是一个非常愚蠢的问题,但是ubuntu 是否依赖于Python 3.8 If it is not, how can I uninstall it from my system?如果不是,如何从我的系统中卸载它?

You can uninstall it after installing a python3* version as alternative.作为替代,您可以在安装python3*版本后将其卸载。 You have to install python3.9 available from Ubuntu repository.您必须安装可从python3.9存储库获得的 python3.9。

sudo apt install python3.9

Here is how to set it as default before uninstalling python3.8 .这是在卸载python3.8之前如何将其设置为默认值的方法。

Without a python3 installed the system will be unusable.如果没有安装 python3,系统将无法使用。

Python3 by default 默认情况下 Python3

Take a look at this:看看这个:
From @progmatico, it's not recommended that you uninstall builtins on Ubuntu such as Python.从@progmatico,不建议您卸载 Ubuntu 上的内置插件,例如 Python。 You can update Python, but it's not reccomended to uninstall.您可以更新 Python,但不建议卸载。 You can uninstall Python 2.x here , but unless you have Python 2 installed on your machine, this won't be much help.您可以在此处卸载 Python 2.x,但除非您的机器上安装了 Python 2,否则这不会有太大帮助。 Unless ROM is tight(if not, I suggest the Raspberry Pi(switchable SD cards)), you don't need to have Python uninstalled.除非ROM很紧(如果不是,我建议使用Raspberry Pi(可切换SD卡)),您不需要卸载Python。
In summary, you don't need to uninstall Python, it's a great coding language;)总之,你不需要卸载Python,它是一种很棒的编码语言;)

The advantage of using apt autoremove is to remove Python along with its dependencies.使用apt autoremove的优点是删除 Python 及其依赖项。

sudo apt autoremove python3 -y

For more information, check the answer given here .有关更多信息,请查看此处给出的答案。

I found the easiest way actually is to simply install the latest pip...我发现最简单的方法实际上是简单地安装最新的 pip ...

curl -sS https://bootstrap.pypa.io/get-pip.py | python3.8

Don't uninstall python3 in ubuntu as it is depended on many python packages if you delete that terminal, firefox browser,idle, will also delete and at last it will show you authentication error不要卸载 ubuntu 中的 python3,因为它依赖于许多 python 包,如果您删除该终端,firefox 浏览器,闲置,也会删除,最后它会显示身份验证错误

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM