vic*_*rcd 1 python git django heroku
我需要一些帮助来解决这个问题。我在另一个heroku帐户中有其他网站,但是我没有进入空帐户。我正在使用python3.5.0(但我尝试在没有成功的情况下更改python版本)和Django 1.10。我的git储存库中有runtime.txt,procfile.txt,但是我有这个问题:(终端)
Counting objects: 105, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (97/97), done.
Writing objects: 100% (105/105), 2.22 MiB | 113.00 KiB/s, done.
Total 105 (delta 34), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing python-3.5.0
remote: ! Requested runtime (python-3.5.0) 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 confiam2.
remote:
To https://git.heroku.com/confiam2.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/
Run Code Online (Sandbox Code Playgroud)
我该如何解决?我试图更新heroku版本,并更改python版本。没有成功。非常感谢谁能帮助我。
错误代码是这样的-
Requested runtime (python-3.5.0) is not available for this stack (heroku-16).
Run Code Online (Sandbox Code Playgroud)
如果访问建议的支持页面,则会看到Python 3.6.2和2.7.13是唯一受支持的运行时。您为什么希望3.5.0能够正常工作?更改您的runtime.txt文件以使其包含python-3.6.2(或尝试使用另一个版本,例如python-3.5.2,也许它可以工作。谁知道,它不受支持),并且该应用应该被Heroku接受(如只要没有其他无关的问题)。