Mehrere Python3-Versionen in /usr/lib/ und anderen Orten: python3, python3.7, python3.8

Mehrere Python3-Versionen in /usr/lib/ und anderen Orten: python3, python3.7, python3.8

Ich habe mehrere Python3-Versionen, die Probleme verursachen. Siehe hier:Probleme beim Upgrade von Pip Wie kann ich alle Versionen außer 3.8 löschen?

Bearbeiten:

$ which python python2 python3 pip pip2 pip3
/usr/bin/python
/usr/bin/python2
/usr/bin/python3
/usr/bin/pip3
$ which python python2 python3 pip pip2 pip3 | xargs ls -l
-rwxr-xr-x 1 root root 303 Mar 30  2019 /usr/bin/pip3
lrwxrwxrwx 1 root root   7 Mar  4  2019 /usr/bin/python -> python2
lrwxrwxrwx 1 root root   9 Mar  4  2019 /usr/bin/python2 -> python2.7
lrwxrwxrwx 1 root root   9 Oct 13 02:33 /usr/bin/python3 -> python3.7

Bearbeitung2:

$ locate \*/bin/python\?.\?
/snap/core/6673/usr/bin/python3.5
/snap/gnome-3-28-1804/31/usr/bin/python3.6
/usr/bin/python3.7

Edit3: Bedeutet das Folgende, dass ich Python 3.8 installiert habe?

/usr/lib$ ls -d python*
python2.7  python3  python3.7  python3.8

verwandte Informationen