简体   繁体   中英

Unable to deploy project to Heroku using Python 3.9 or 3.8

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

Within the runtime.txt I have:

 cat runtime.txt python-3.9.0

That file should only contain

python-3.9.0

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 like

$ cat runtime.txt
python-3.9.0

which is supposed to mean "if you run cat runtime.txt you should see python-3.9.0 ".

Edit your runtime.txt to remove the cat line, commit, and redeploy.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM