各位大大好,卡关两天来求救一下。我在 Windows 11 上用 Docker 跑一个简单的 Python + FastAPI 项目,本机直接执行都正常,但一 build image 之后容器启动就出现 ModuleNotFoundError。Dockerfile 里有先 COPY requirements.txt 再 pip install,也确认过工作目...
Original
各位大大好,卡關兩天來求救一下。我在 Windows 11 上用 Docker 跑一個簡單的 Python + FastAPI 專案,本機直接執行都正常,但一 build image 之後容器啟動就出現 ModuleNotFoundError。Dockerfile 裡有先 COPY requirements.txt 再 pip install,也確認過工作目...
浏览: 1