简体   繁体   中英

Uninstall python3.8 from Ubuntu 20.04.2 LTS

This is a pretty dumb question, but is ubuntu dependent on 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. You have to install python3.9 available from Ubuntu repository.

sudo apt install python3.9

Here is how to set it as default before uninstalling python3.8 .

Without a python3 installed the system will be unusable.

Python3 by default

Take a look at this:
From @progmatico, it's not recommended that you uninstall builtins on Ubuntu such as Python. You can update Python, but it's not reccomended to uninstall. You can uninstall Python 2.x here , but unless you have Python 2 installed on your machine, this won't be much help. Unless ROM is tight(if not, I suggest the Raspberry Pi(switchable SD cards)), you don't need to have Python uninstalled.
In summary, you don't need to uninstall Python, it's a great coding language;)

The advantage of using apt autoremove is to remove Python along with its dependencies.

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...

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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