2017-08-27 127 views
2

部署頁。當我部署在Heroku上的頁面:Python的版本問題,當我在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 是真正的問題取決於版本?或者是其他東西?謝謝!

回答

0

請嘗試刪除runtime.txt和重新部署。 我有同樣的問題,它只是之前爲我工作。