简体   繁体   中英

There is a problem with the code, I can not find a solution

There is a problem with the code, I can not find a solution

C:\Users\sphe\justeat>git push heroku master
Enumerating objects: 61, done.
Counting objects: 100% (61/61), done.
Delta compression using up to 4 threads.

Compressing objects: 100% (54/54), done.
Writing objects: 100% (61/61), 1015.17 KiB | 647.00 KIS/s, done.
Total 61 (delta 4), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: -----> Python app detected
remote:Requested runtime (python-3.5.2) is not available for this stack (heroku-18)
remote: More info: https://devcenter.heroku.co...
remote: ! Push failed

remote: Verifying deploy... remote: ! Push rejected to enigmatic-spire-63168. To https://git.heroku.com/enigm ... ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to ' https://git.heroku.com/enigm ...

Your Problem

remote:Requested runtime (python-3.5.2) is not available for this stack (heroku-18)

Solution:

by the official website of heroku , your python version (3.5.2) isn't compatible with heroku version 18.

From Developer Webpage:

Specifying a Python version

By default, newly created Python apps use the python-3.6.8 runtime. You can also specify a different supported Python version.

Supported runtimes

  • python-3.7.3 on all (heroku-16, and heroku-18) runtime stacks
  • python-3.6.8 on all (heroku-16, and heroku-18) runtime stacks
  • python-2.7.16 on all (heroku-16, and heroku-18) runtime stacks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM