【发布时间】:2021-01-19 18:58:11
【问题描述】:
我一直试图通过 Heroku 部署这个 Flask 应用程序。我已经研究了多种方法来解决它,但似乎无法找到它的工作方式。这是我推送到git push heroku master时得到的结果
remote: -----> Building on the Heroku-20 stack
remote: -----> Python app detected
remote: ! Requested runtime (python-) is not available for this stack (heroku-20).
remote: ! Aborting. More info: https://devcenter.heroku.com/articles/python-support
remote: ! Push rejected, failed to compile Python app.
我已经清除并设置了构建包,目前是:
=== wonders141 Buildpack URL
heroku/python
runtime.txt 包含:
python-3.9.1
我不确定为什么错误消息没有定义 python 版本,所以我不知道该怎么做。
【问题讨论】:
-
我也有同样的问题不知道怎么解决!