Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/332.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
在heroku上部署页面时出现的Python版本问题_Python_Heroku - Fatal编程技术网

在heroku上部署页面时出现的Python版本问题

在heroku上部署页面时出现的Python版本问题,python,heroku,Python,Heroku,在heroku上部署页面时: wumengtiandeMacBook-Pro:web wumengtian$ git push heroku master 然后: remote: Compressing source files... done. remote: Building source: remote: remote: -----> Python app detected remote: -----> Installing Python-3.6.2 remote: !

在heroku上部署页面时:

wumengtiandeMacBook-Pro:web wumengtian$ git push heroku master
然后:

remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Python app detected
remote: -----> Installing Python-3.6.2
remote:  !     Requested runtime (Python-3.6.2) is not available for this stack (heroku-16).
remote:  !     Aborting.  More info: https://devcenter.heroku.com/articles/python-support
remote:  !     Push rejected, failed to compile Python app.
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !    Push rejected to safe-peak-44258.
所以我搜索 它显示以下图像:


问题是否真的取决于版本?还是别的什么?谢谢大家!

请尝试删除runtime.txt并重新部署。 我也遇到了同样的问题,就在之前,它对我起了作用