gpt4 book ai didi

python - Django:git Push heroku master 失败

转载 作者:太空宇宙 更新时间:2023-11-03 16:33:55 24 4
gpt4 key购买 nike

我第一次尝试将 django Web 应用程序推送到 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,但还是不行。

最佳答案

不支持Python 3.5.0。您可以将其更改为python-3.5.1

参见https://devcenter.heroku.com/articles/python-runtimes#supported-python-runtimes对于支持的运行时。

关于python - Django:git Push heroku master 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37373437/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com