标签: #環境設定
各位大大好,卡关两天来求救一下。我在 Windows 11 上用 Docker 跑一个简单的 Python + FastAPI 项目,本机直接执行都正常,但一 build image 之后容器启动就出现 ModuleNotFoundError。Dockerfile 里有先 COPY requirements.txt 再 pip install,也确认过工作目...
编辑时间: 2026-03-16 17:28:33作者 yeyuqiaochuang_7214 普通 | 回复数 1 | 2026-03-14 21:11:47Original
各位大大好,卡關兩天來求救一下。我在 Windows 11 上用 Docker 跑一個簡單的 Python + FastAPI 專案,本機直接執行都正常,但一 build image 之後容器啟動就出現 ModuleNotFoundError。Dockerfile 裡有先 COPY requirements.txt 再 pip install,也確認過工作目...