可以从 Ubuntu 22.04 安全删除 Python 3.9 吗?
我想迁移到 Python 3.10,但我的笔记本电脑上的存储空间不足,因此我想删除 Python 3.9 及其库。我认为 Ubuntu 22.04 的默认 Python 版本是 Python 3.10,他们完全放弃了对 Python 2 的支持。这是否意味着我的机器上只需要 Python 3.10?
这是命令的输出ls -l /usr/bin/python[23]* /usr/local/bin/python[23]*
:
ls: cannot access '/usr/local/bin/python[23]*': No such file or directory
lrwxrwxrwx 1 root root 10 Aug 18 12:39 /usr/bin/python3 -> python3.10
-rwxr-xr-x 1 root root 5917064 Aug 10 13:40 /usr/bin/python3.10
lrwxrwxrwx 1 root root 34 Aug 10 13:40 /usr/bin/python3.10-config -> x86_64-linux-gnu-python3.10-config
-rwxr-xr-x 1 root root 5299024 Sep 8 01:43 /usr/bin/python3.9
lrwxrwxrwx 1 root root 33 Sep 8 01:43 /usr/bin/python3.9-config -> x86_64-linux-gnu-python3.9-config
lrwxrwxrwx 1 root root 17 Aug 18 12:39 /usr/bin/python3-config -> python3.10-config
-rwxr-xr-x 1 root root 960 Dec 23 2020 /usr/bin/python3-futurize
-rwxr-xr-x 1 root root 964 Dec 23 2020 /usr/bin/python3-pasteurize