我的代码在本地运行良好,但在 Heroku 上崩溃。我能做什么来修复它?
Traceback (most recent call last)
File "/app/nao_entre_em_panico.py", line 2, in <module>
from flask import Flask, jsonify, request
File "/app/.heroku/python/lib/python3.10/site-packages/flask/__init__.py", line 17, in <module>
from werkzeug.exceptions import abort
File "/app/.heroku/python/lib/python3.10/site-packages/werkzeug/__init__.py", line 151, in <module>
__import__('werkzeug.exceptions')
File "/app/.heroku/python/lib/python3.10/site-packages/werkzeug/exceptions.py", line 71, in <module>
from werkzeug.wrappers import Response
File "/app/.heroku/python/lib/python3.10/site-packages/werkzeug/wrappers.py", line 27, in <module>
from werkzeug.http import HTTP_STATUS_CODES, \
File "/app/.heroku/python/lib/python3.10/site-packages/werkzeug/http.py", line 1148, in <module>
from werkzeug.datastructures import Accept, HeaderSet, ETags, Authorization, \
File "/app/.heroku/python/lib/python3.10/site-packages/werkzeug/datastructures.py", line 16, in <module>
from collections …Run Code Online (Sandbox Code Playgroud)