“我在使用”时遇到了一些困难;git push heroku master“;在最近安装的python上+;Windows 10系统上的otree组合

“我在使用”时遇到了一些困难;git push heroku master“;在最近安装的python上+;Windows 10系统上的otree组合,python,git,heroku,otree,Python,Git,Heroku,Otree,谢谢你的帮助 当我尝试git推送heroku master时,似乎出现了以下错误: remote: -----> Installing python-3.6.12 remote: -----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2 remote: -----> Installing SQLite3 remote: -----> Installing requirements with pip r

谢谢你的帮助

当我尝试git推送heroku master时,似乎出现了以下错误:

remote: -----> Installing python-3.6.12
remote: -----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote:        Collecting otree>=2.5.0
remote:          Downloading otree-3.0.6.tar.gz (847 kB)
remote:            ERROR: Command errored out with exit status 1:
remote:             command: /app/.heroku/python/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mka_62qe/otree/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mka_62qe/otree/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-5rga_gck
remote:                 cwd: /tmp/pip-install-mka_62qe/otree/
remote:            Complete output (3 lines):
remote:
remote:            Error: This version of oTree requires Python 3.7 or higher.
remote:
remote:            ----------------------------------------
remote:        ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to projectivity-experiment.
remote:
To https://git.heroku.com/projectivity-experiment.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/projectivity-experiment.git' 

我不确定Python是什么,因为我在计算机上安装了3.8.5版,但它似乎正在安装Python-3.6.12(出于某种原因,它低于指定的所需Python版本)

要解决Python版本的问题,请使用
Procfile在根目录下创建一个名为
runtime.txt
的文件

python-3.8.3

这就是你要找的吗?嗨,不是真的,但是谢谢。更具体的问题是,我如何获得不加载heroku默认python运行时(3.6.12)的推送,而是使用3.8.5。似乎有一些关于runtime.tex文件的东西,但出于某种原因,这对我也不起作用。再次感谢!听起来有点熟悉。但是Procfile到底是什么?(对不起,我在这里是一个真正的新手!)应该是这样的,main.py是bot文件
worker:python main.py
对。由于我还没有开始构建一个应用程序,我假设这应该是需求所在,txt文件所在的位置,我也在命令提示符下更改了目录?在记事本中创建一个.txt文件并包含python-3.8.5行就足够了吗,还是我应该通过python编辑器来完成?确切地说,您应该拥有三个
requirements.txt
Procfile
runtime.txt
。你可以同时使用这两种方法。我说如果我没有Procfile,但我确实创建了runtime.txt文件,那么它仍然不足以修复错误,这是错的吗?编辑:哦,看来我确实有一个Procfile,但它是空的