Reference only

SciPy, einops and torchsde: distinguish missing imports from failed operations

Keep the precise import and operation errors instead of treating every scientific-library failure as an install issue.

Keep imports separate from operations

SciPy, einops and torchsde have different roles: scientific computing, tensor rearrangement and differentiable SDE solving respectively.123 SciPy recommends managed project or environment installs; einops patterns must match actual tensor dimensions; torchsde examples specify drift/diffusion functions, state and time-grid shapes. A name in a traceback does not itself establish a missing package.

python -m pip show scipy einops torchsde numpy torch

Use the Python executable that starts ComfyUI and save the first complete traceback and node revision. First confirm which import is actually missing; if import reaches a compiled extension and fails there, record the interpreter, NumPy version, wheel/platform and first native error. Test a genuinely missing dependency against the node's declared range in a recoverable copy, rather than globally replacing a shared numerical stack.

After import succeeds, test the original operation separately. For an einops pattern error, keep the full dimension expression, axis sizes, tensor shape and dtype. For a torchsde runtime error, preserve model drift/diffusion signatures, initial-state and time-grid shapes, and solver options rather than silently substituting a different operation.

Build a small reproduction and compare one change at a time. Report a working import separately from a working node. A new package with a similar name is not a justified repair, and an untested version combination remains unverified.

Source review and separate English editorial pass: 2026-09-26. No local installation, numerical operation, model or GPU run occurred; no universal version combination is asserted.

Didn't solve it?

Check the next possible cause

The same symptom can come from a different cause. Work through these related entries in order.

  1. Keep a reproducible ComfyUI repair record without exposing secretsCapture the environment and one controlled change while distinguishing metadata from runtime success.
  2. Where to run ComfyUI commands: PowerShell, CMD and virtual environmentsIdentify the shell, interpreter and working directory before copying an installation command.
Paste your full log into the error finder

Was this page helpful?

Anonymous. Only a yes/no counter is stored; no account, IP address or device details.

Sources & references

2026-09-26 reviewed primary SciPy, einops and torchsde sources; independent English editorial pass, no local operation or GPU run.

01SciPy installationSource checked: 2026-09-2602einops upstream documentationSource checked: 2026-09-2603torchsde upstream READMESource checked: 2026-09-26

Report an issue · bc408edc-14eb-54ad-a30a-6729ba2e5952