列出默认位置的所有 python 版本
ls /usr/bin/python*
仅删除 python3 包
sudo apt-get remove python3.8
加上它的依赖包
sudo apt-get remove --auto-remove python3.8
加上 python3 的配置和/或数据文件
sudo apt-get purge python3.8
python3.8 的配置和/或数据文件及其依赖项
sudo apt-get purge --auto-remove python3.8
如何安装新版本的python
sudo apt-get update

sudo apt-get install python3

可以查看https://docs.python-guide.org/starting/install3/linux/或 python3.8的安装https://linuxize.com/post/how-to-install-python-3-8-on-ubuntu-18-04/

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐