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

时间:2017-08-27 16:25:30

标签: 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:  !     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.

所以我搜索https://devcenter.heroku.com/articles/python-support 它显示以下图像:

enter image description here 问题真的取决于版本吗?或者是其他东西?谢谢!

1 个答案:

答案 0 :(得分:0)

请尝试删除runtime.txt并再次部署。 我遇到了同样的问题,之前它对我很有用。