列出默认位置的所有 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/
本文详细指导如何在Ubuntu上管理不同Python版本,包括删除python3.8及其依赖,安装新版本python3,并提供安装教程链接。
2万+

被折叠的 条评论
为什么被折叠?



