I guess there is a pretty good reason for not upgrading to latest available releases. I haven’t tried building python before. So cannot help with that. But if you are willing to experiment, there are two options.
- Take a look at OMLx python repo on GitHub. It seems to be updated to 3.13.3. There is a nice article on how to build packages for openmandriva. You may be able to build the package and install. Again remember, there must be a reason for not upgrading!
- Use homebrew (probably safer option). I recently discovered it while discussing on another thread. Once you have homebrew installed, install a particular version of python by appending @version. Like so,
brew install python@3.13
Afterwards, you can run the new version of python aspython3.13instead of justpythonorpython3. It seems system installed version still remains default.