ModuleNotFoundError: No module named 'einops' in ComfyUI
Fix ComfyUI No module named einops errors by installing einops in the active Python environment and restarting ComfyUI.
If ComfyUI logs ModuleNotFoundError: No module named 'einops', install the Python package einops in the environment that starts ComfyUI.
einops is a common tensor manipulation dependency used by ComfyUI itself and many model or video custom nodes. In a broken portable environment, it often appears after core packages such as Torch, safetensors, packaging, and NumPy have been repaired.
In the SEO Lab portable repair chain, installing einops exposed the next missing package, psutil, which confirmed the startup repair was moving forward one blocker at a time.
Fast answer
For the GitHub Windows portable package:
.\python_embeded\python.exe -s -m pip show einops
.\python_embeded\python.exe -s -m pip install einops
.\python_embeded\python.exe -s -c "import einops; print('import ok')"
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-buildWhat The Log Looks Like
ModuleNotFoundError: No module named 'einops'The traceback may appear from ComfyUI core modules, model code, or custom nodes that use tensor rearrangement helpers.
Quick Diagnosis
| What You See | Meaning | First Action |
|---|---|---|
No module named 'einops' during startup | Core dependency missing | Install einops in ComfyUI's Python |
| Error appears after fixing NumPy | Normal repair-chain progression | Install only einops, restart, read the new first error |
| Error comes from a custom node | Plugin also needs the same package | Still install in the environment that launches ComfyUI |
| Install succeeds but error remains | Wrong Python was repaired | Run pip show einops through ComfyUI's Python |
Step 1: Check The Active Python
Windows portable:
.\python_embeded\python.exe -s -c "import sys; print(sys.executable)"
.\python_embeded\python.exe -s -m pip show einopsManual venv:
python -c "import sys; print(sys.executable)"
python -m pip show einopsStep 2: Install And Verify
Windows portable:
.\python_embeded\python.exe -s -m pip install einops
.\python_embeded\python.exe -s -c "import einops; print(einops.__version__)"Manual venv:
python -m pip install einops
python -c "import einops; print(einops.__version__)"Step 3: Restart ComfyUI
.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-buildIf a new missing package appears, continue with the new first traceback. Do not batch-install unrelated ML packages unless you are intentionally rebuilding the environment.
What Not To Do
- do not assume
einopsmissing means the workflow file is broken - do not install into system Python when ComfyUI starts from
python_embeded - do not downgrade Torch or NumPy just because
einopsis missing - do not run every custom node
requirements.txtif the traceback points to core startup
Related Guides
- Repair ComfyUI Portable Dependencies One Missing Module At A Time
- No module named 'safetensors' in ComfyUI
- No module named 'scipy' in ComfyUI
- Fix No module named errors in ComfyUI
- ComfyUI Dependency Conflicts
Source References
- Windows portable SEO Lab repair, May 18, 2026:
ModuleNotFoundError: No module named 'einops'appeared after NumPy repair - Same lab
ComfyUI\requirements.txt:einops - einops on PyPI
Start free with Wonderful Launcher if this affects your real ComfyUI environment. It keeps launcher-native repair, task logs, and runtime checks in one place; credits are only for image generation and metered tools.
Download Wonderful LauncherSee credit packagesDid this fix your issue?
Your answer helps prioritize verified ComfyUI repairs.