Question
Is runtime.txt the official Python way to specify the python version to use? I suppose it is not what Python supports out of the box and I believe the version of Python runtime depends on the binary package management of each system (apt, brew, yum), unless explicitly download from https://www.python.org/downloads/.
However, if there is a known mechanism to switch Python version, please advise.
Background
There are several articles, mostly from Heiroku related, about runtime.txt to be specific with which version of Python to run.
-
You can specify the version of Python to be used by your app by setting python-versionnumber in the runtime.txt file in the root of your application.