首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ML heroku部署

ML heroku部署
EN

Stack Overflow用户
提问于 2021-09-07 02:37:31
回答 1查看 14关注 0票数 0

当我尝试推送我的heroku应用程序时,我得到了一个错误信息。我有一个带有文本python-3.7.10的runtime.txt,我有一个requirements.txt,我有一个Procfile,我真的不确定缺少什么。python 3.7.10是一个受支持的运行时。有人能帮帮我吗,我真的卡住了。它一直在说“请求的运行时(Python-3.7.10)不适用于这个堆栈(heroku-20)”。提前感谢!

代码语言:javascript
复制
<<-----> 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>>
EN

回答 1

Stack Overflow用户

发布于 2021-09-07 06:58:51

Heroku-20是新创建的应用程序的默认堆栈:在此堆栈中,您可以使用不同的语言和版本。

对于Python,支持的版本包括:

  • python-3.9.7
  • python-3.8.12
  • python-3.7.12
  • python-3.6.15

您设置了不支持的Python-3.7.10:更正版本或删除文件(依赖于默认版本python-3.9.7)。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69081826

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档