当我尝试推送我的heroku应用程序时,我得到了一个错误信息。我有一个带有文本python-3.7.10的runtime.txt,我有一个requirements.txt,我有一个Procfile,我真的不确定缺少什么。python 3.7.10是一个受支持的运行时。有人能帮帮我吗,我真的卡住了。它一直在说“请求的运行时(Python-3.7.10)不适用于这个堆栈(heroku-20)”。提前感谢!
<<-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> Python app detected
-----> Using Python version specified in runtime.txt
! Requested runtime (Python-3.7.10) is not available for this stack (heroku-20).
! Aborting. More info: https://devcenter.heroku.com/articles/python-support
! Push rejected, failed to compile Python app.
! Push failed>>发布于 2021-09-07 06:58:51
Heroku-20是新创建的应用程序的默认堆栈:在此堆栈中,您可以使用不同的语言和版本。
对于Python,支持的版本包括:
您设置了不支持的Python-3.7.10:更正版本或删除文件(依赖于默认版本python-3.9.7)。
https://stackoverflow.com/questions/69081826
复制相似问题