Flask 新手并在 Heroku 上部署,尝试推送到 Heroku,安装依赖项时出现此错误:
pipenv 版本看起来很有趣,不确定这是否正确,或者如果这是错误,如何纠正它
Enumerating objects: 38, done.
Counting objects: 100% (38/38), done.
Delta compression using up to 8 threads
Compressing objects: 100% (30/30), done.
Writing objects: 100% (38/38), 83.94 KiB | 10.49 MiB/s, done.
Total 38 (delta 8), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing python-3.8.5
remote: -----> Installing pip
remote: -----> Installing dependencies with Pipenv 2018.5.18
remote: Traceback (most recent call last):
remote: File "/tmp/build_9fedd330/.heroku/python/lib/python3.8/site-packages/pipenv/patched/prettytoml/elements/abstracttable.py", line 27, in _enumerate_items
remote: yield next(non_metadata), next(non_metadata)
remote: StopIteration
remote:
remote: return toml.loads(contents)
remote: File "/tmp/build_9fedd330/.heroku/python/lib/python3.8/site-packages/pipenv/vendor/toml.py", line 307, in loads
remote: raise TomlDecodeError("Key group not on a line by itself.")
remote: toml.TomlDecodeError: Key group not on a line by itself.
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
不知道错误是什么!任何帮助,将不胜感激。由于向我询问有关许多代码的更多详细信息,我删除了一些错误列表