django(2.0) 我试图上传我的django应用程序到heroku,但我不能,因为它 表示请求的运行时(Python3.7.2)不可用。在
Counting objects: 100% (1725/1725), done.
Delta compression using up to 4 threads
Compressing objects: 100% (1721/1721), done.
Writing objects: 100% (1725/1725), 9.34 MiB | 21.00 KiB/s, done.
Total 1725 (delta 93), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: ! Requested runtime (Python 3.7.2) is not available for this stack (heroku-18).
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 mubashartech.
remote:
To https://git.heroku.com/mubashartech.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/mubashartech.git'
Heroku Docs表示当前支持的Python3.7.X版本是3.7.3。在
将
runtime.txt
文件中的值更改为python-3.7.3
,以使用python3.7.3。在相关问题 更多 >
编程相关推荐