Python not found
Möchte man prüfen, welche Python Version installiert ist und bekommt stattdessen die Meldung
Command 'python' not found
, könnte es sein dass Python nicht gesetzt wurde.
root:~# python --version
Command 'python' not found, did you mean:
command 'python3' from deb python3
command 'python' from deb python-is-python3
Als Gegenprobe können wir uns die Version von python3
anzeigen lassen. Wird die Version angezeigt, ist Python auch installiert aber nicht gesetzt.
root:~# python3 --version
Python 3.10.6
Python3 setzen wir nun mit folgenden Befehl als Standard Python.
root:~# apt install python-is-python3
Nun prüfen wir ob Python auf Python3 zeigt.
root:~# python --version
Python 3.10.6