First, you have to check the installed Python versions on your system.
Then, you can set the default Python version using the update-alternatives
command. The higher the priority value, the higher the priority of that version.
To check if the default Python version has been set correctly, you can run:
Optional: You can also set the default Python version for python
command:
Written by
KarChunT
Last Updated
Sat Apr 26 2025
Tags
LinuxPython