Currently, Heroku supports multiple versions of Python as per their documentation. However, I run into an error when I try to deploy a project while including a runtime.txt
:
Requested runtime (cat runtime.txt python-3.9.0)
is not available for this stack (Heroku-20).
Within the runtime.txt
I have:
cat runtime.txt
python-3.9.0
That file should only contain
cat
, short for "concatenate", is a command that you can run on some operating systems (Linux, Unix, likely macOS, maybe others) to show the contents of a file. You probably saw some documentation that said something likewhich is supposed to mean "if you run
cat runtime.txt
you should seepython-3.9.0
".Edit your
runtime.txt
to remove thecat
line, commit, and redeploy.