I referred to https://www.rosehosting.com/blog/how-to-install-python-3-6-4-on-debian-9/
Using apt:
E: The value 'stable' is invalid for APT::Default-Release as such a release is not available in the sources
> sudo apt -t testing install python3.6
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'python3.6-2to3' for regex 'python3.6'
Note, selecting 'libpython3.6-stdlib' for regex 'python3.6'
0 upgraded, 0 newly installed, o to remove and 943 not upgraded.
How could I do next?
Compiling Python3.6.4:
> sudo apt install llvm
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
llvm : Depends: llvm-runtime (=1:3.8-36) but it is not going to be installed
Depends: llvm-3.8 (>= 3.8 ~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
How could I do next?