4

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.

mon
  • 18,789
  • 22
  • 112
  • 205
  • 1
    It's mainly for web application hosts to detect the runtime of your application/program so that when you spin up your app in those services (i.e. IBM cloud in your post, Heroku, Docker, etc), they spin up the correct environment to run your code. – TYZ Apr 29 '20 at 01:55

0 Answers0