Can Python 3.9 be safely removed from Ubuntu 22.04?
I want to move to Python 3.10 and I am short on storage on my laptop, therefore I would like to delete Python 3.9 along with its libraries. I think the default Python version for Ubuntu 22.04 is Python 3.10 and they completely dropped support for Python 2. Does that mean that only Python 3.10 is required on my machine?
Here is the output of the command 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