comfyanonymous / ComfyUI

The most powerful and modular stable diffusion GUI, api and backend with a graph/nodes interface.
https://www.comfy.org/
GNU General Public License v3.0
42.87k stars 4.53k forks source link

Cannot get ComfyUI to launch for manual installation; 'torch' missing error #2752

Open uraniumcrystalsmaster opened 5 months ago

uraniumcrystalsmaster commented 5 months ago

I tried to download Comfyui manually, but it still gives me the same error. I installed torch in the ComfyUI folder because the ComfyUI installation guide does not provide a location to install it: C:\Users\urani\ComfyUI_manual_install\ComfyUI>python main.py --force-fp16 Traceback (most recent call last): File "C:\Users\urani\ComfyUI_manual_install\ComfyUI\main.py", line 73, in import comfy.utils File "C:\Users\urani\ComfyUI_manual_install\ComfyUI\comfy\utils.py", line 1, in import torch ModuleNotFoundError: No module named 'torch'

ltdrdata commented 5 months ago

https://github.com/comfyanonymous/ComfyUI?tab=readme-ov-file#windows

WillianReis92 commented 2 months ago

same problem here

cgwers commented 2 months ago

I love ComfyUI, but this constant break/fix BSing around with torch and cuda is indicative of serious development methodology issues in this project. On average, I'm managing 3-4 days a week with a running system. The rest of that time is trying to figure out why cuda and torch are fried when I haven't added any custom modules. The reliance on git modules during startup is a hinderance to everyone trying to work with SD stuff since it breaks so damned often.

I realize that this applies to other image AI UIs, too. So talk to them and fix this crap. You're all going to be squashed by the professionals (MS/META/GOOGLE) if you don't figure out how to make these UIs work reliably. Once they release a buy-me monolith app that generates images, you're all sunk.

mrljdx commented 1 month ago

same problem on macos when update the latest commit

** ComfyUI startup time: 2024-05-24 19:55:24.263218
** Platform: Darwin
** Python version: 3.12.2 (main, Feb  6 2024, 20:19:44) [Clang 15.0.0 (clang-1500.1.0.2.5)]
** Python executable: /opt/homebrew/opt/python@3.12/bin/python3.12
** Log path: /Users/mrljdx/Workspace/Github/ComfyUI/comfyui.log

Prestartup times for custom nodes:
   0.0 seconds: /Users/mrljdx/Workspace/Github/ComfyUI/custom_nodes/ComfyUI-Manager

Traceback (most recent call last):
  File "/Users/mrljdx/Workspace/Github/ComfyUI/main.py", line 73, in <module>
    import comfy.utils
  File "/Users/mrljdx/Workspace/Github/ComfyUI/comfy/utils.py", line 1, in <module>
    import torch
ModuleNotFoundError: No module named 'torch'
bparlan commented 4 weeks ago

Just encountered same problem, it was working a month ago tbh.

** ComfyUI startup time: 2024-06-22 17:25:22.567353
** Platform: Darwin
** Python version: 3.9.6 (default, Nov 10 2023, 13:38:27) 
[Clang 15.0.0 (clang-1500.1.0.2.5)]
** Python executable: /Library/Developer/CommandLineTools/usr/bin/python3
** Log path: /Users/bparlan/AI/ComfyUI/comfyui.log

Prestartup times for custom nodes:
   0.0 seconds: /Users/bparlan/AI/ComfyUI/custom_nodes/ComfyUI-Manager

Traceback (most recent call last):
  File "/Users/bparlan/AI/ComfyUI/main.py", line 73, in <module>
    import comfy.utils
  File "/Users/bparlan/AI/ComfyUI/comfy/utils.py", line 1, in <module>
    import torch
ModuleNotFoundError: No module named 'torch'