代码有问题,我找不到解决方法

2024-04-29 07:37:54 发布

您现在位置:Python中文网/ 问答频道 /正文

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

远程:正在验证部署。。。 遥控器:!推到神秘的塔尖63168。 到https://git.heroku.com/enigm。。。 ! [远程拒绝]主机->;主机(拒绝预接收挂钩) 错误:无法将某些引用推送到https://git.heroku.com/enigm。。。你知道吗


Tags: httpsgitcomsourceherokuobjects远程remote
1条回答
网友
1楼 · 发布于 2024-04-29 07:37:54

你的问题

你知道吗远程:请求的运行时(python-3.5.2)不可用于此堆栈(heroku-18)

解决方案:

根据官方网站heroku,您的python版本(3.5.2)与heroku版本18不兼容。你知道吗

来自开发者网页:

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

相关问题 更多 >