ImportError: cannot import name 'Container' from 'collections' - heroku

ImportError: cannot import name 'Container' from 'collections' - heroku

代码 运行 在本地运行良好,但在 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 import Container, Iterable, MutableSet
 ImportError: cannot import name 'Container' from 'collections' (/app/.heroku/python/lib/python3.10/collections/__init__.py)

ContainerIterableMutableSet 和其他抽象基础 类 在 collections.abc 中,因为 Python 3.3.