패키지 누락
ComfyUI에서 No module named 'torch'가 뜰 때 복구
VerifiedHigh riskTested on Windows 10, Windows 11 | Launcher 1.x | ComfyUI portable
portable, venv, managed install 에서 torch 가 사라졌을 때 올바른 Python 환경에 되돌리고, CUDA 빌드까지 확인하는 방법.
검증 환경
- OS: Windows 10 / 11
- Launcher: Wonderful Launcher v1.x
- ComfyUI: Portable / Managed install
- Python: 3.11+
- CUDA / Torch: CUDA 12.x / Torch 2.x
- 최종 확인: 2026-05-19
No module named 'torch' 는 ComfyUI 코어 runtime 이 깨진 상태입니다.
먼저 Torch 를 ComfyUI 를 실행한 Python 에 되돌려야 합니다.
portable 기본 절차
.\python_embeded\python.exe -s -m pip show torch torchvision torchaudio
.\python_embeded\python.exe -s -m pip install torch
.\python_embeded\python.exe -s -c "import torch; print(torch.__version__, torch.version.cuda, torch.cuda.is_available())"꼭 볼 것
import torch가 되어도+cpu면 아직 불충분torch.version.cuda가None이면 GPU 빌드가 아님- system Python 에 설치해도 portable 환경은 안 고쳐짐
그 다음에 따라오는 것
torchvisiontorchaudiosafetensors- 재시작 후 새로 나타난 첫 번째 missing package
관련 문서
이 문제가 실제 ComfyUI 환경에 영향을 주고 있다면, 먼저 Wonderful Launcher 로 현재 머신을 점검하고 문서를 보며 수리 방향을 정하세요.
Wonderful Launcher 다운로드Did this fix your issue?
Your answer helps prioritize verified ComfyUI repairs.