Ubuntu系统下python3.x的卸载

列出默认位置的所有 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/

猜你喜欢

转载自blog.csdn.net/ylfmsn/article/details/124926549