提交runtime.txt更改后推送到Heroku时出错:请求的运行时'python-3.9.5'不可用于此堆栈(heroku-22)

p3rjfoxz  于 2022-11-13  发布在  Python
关注(0)|答案(1)|浏览(94)

在我第一次尝试推送到Heroku($ git subtree push --prefix <my-subfolder> heroku main)时,我的runtime.txt文件中有python-3.9.5

remote: -----> Building on the Heroku-22 stack
remote: -----> Determining which buildpack to use for this app
remote: -----> Python app detected
remote: -----> Using Python version specified in runtime.txt
remote:  !     Requested runtime 'python-3.9.5' is not available for this stack (heroku-22).
remote:  !     For supported versions, see: https://devcenter.heroku.com/articles/python-support
remote:  !     Push rejected, failed to compile Python app.

在检查输出中的链接后,我将runtime.txt文件更改为推荐的python-3.10.7版本,并提交了更改。
我不知道它是从哪里阅读的旧版本,因为我改变了它?谢谢!

slsn1g29

slsn1g291#

尚未解决问题,但找到了一个解决方法,即将当前应用$ heroku stack:set heroku-20上的堆栈从22降级到〉20

相关问题