Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
创建requirements.txt文件后Heroku部署失败_Heroku_Flask - Fatal编程技术网

创建requirements.txt文件后Heroku部署失败

创建requirements.txt文件后Heroku部署失败,heroku,flask,Heroku,Flask,我有一个烧瓶应用程序,我想推给Heroku,但失败了。我得到一个错误: Requested runtime (python-3.5.1) is not available for this stack 我查看了我的runtime.txt文件: python-3.6.5 这似乎是python的正确版本 在my requirements.txt中,我有以下内容: Flask==0.12.0 Jinja2==2.8.1 gunicorn==19.6.0 到目前为止,我只使用了烧瓶和金卡 为什么

我有一个烧瓶应用程序,我想推给Heroku,但失败了。我得到一个错误:

 Requested runtime (python-3.5.1) is not available for this stack
我查看了我的runtime.txt文件:

python-3.6.5
这似乎是python的正确版本

在my requirements.txt中,我有以下内容:

Flask==0.12.0
Jinja2==2.8.1
gunicorn==19.6.0
到目前为止,我只使用了烧瓶和金卡


为什么我仍然会出现此错误

请确保在推送到Heroku之前提交依赖项文件中的更改