我正在 vs code 中运行这个简单的 Flask 应用程序。将其 Docker 化并加载到 ECS。任务正在退出并出现以下错误:
ImportError:无法从“collections”导入名称“MutableMapping”(/usr/local/lib/python3.10/collections/ init .py)
我使用的基础镜像是python3.10。
以下是dockerfile代码:
FROM python:3.10
WORKDIR /usr/src/app
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
EXPOSE 5000
Run Code Online (Sandbox Code Playgroud)
为什么我会收到此错误?