To change python version system-wide we can use update-alternatives
command.
Logged in as a root user, first list all available python alternatives:
# apt-get update
# apt-get install python3.6
# update-alternatives --list python
update-alternatives: error: no alternatives for python
The above error message means that no python alternatives has been recognized by update-alternatives
command.