我正在尝试将django网络应用程序首次推送到heroku,并且有一些错误消息如下所示。
Delta compression using up to 4 threads.
Compressing objects: 100% (68/68), done.
Writing objects: 100% (81/81), 105.31 KiB | 0 bytes/s, done.
Total 81 (delta 7), 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
(cedar-14).
remote: ! Aborting. More info: https://devcenter.heroku.com/articles/pytho
n-support
remote:
remote: ! Push rejected, failed to compile Python app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to polar-lake-12528.
remote:
To https://git.heroku.com/polar-lake-12528.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/polar-lake-12528.git'
我的runtime.txt看起来像:
python-3.5.1
我已经更改为小写并将python的版本更新为3.5.1,但仍无效。
答案 0 :(得分:1)
不支持Python 3.5.0。您可以将其更改为python-3.5.1
。
有关支持的运行时,请参阅https://devcenter.heroku.com/articles/python-runtimes#supported-python-runtimes。