Skip to content

Can't build wheels - No module named 'torch' .venv Comfy UI- Windows 10 #142

Open
@AdamGman

Description

@AdamGman

Windows 10, python 3.12.9, torch 2.6 + CUDA 12.6

I followed instructions on multiple reddit posts about installing but python fails.
If someone can send over compiled wheel or site-packages I would appreciate.

I go to .venv > "activate" > cd SageAttention > pip install -e .

Getting requirements to build editable ... error
error: subprocess-exited-with-error

ACTUAL ERROR:

× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
.venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 389, in
main()
.venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.venv\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 157, in get_requires_for_build_editable
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
\Lib\site-packages\setuptools\build_meta.py", line 483, in get_requires_for_build_editable
return self.get_requires_for_build_wheel(config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
\Lib\site-packages\setuptools\build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
\Lib\site-packages\setuptools\build_meta.py", line 304, in _get_build_requires
self.run_setup()
\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
exec(code, locals())
File "", line 24, in
ModuleNotFoundError: No module named 'torch'
[end of output]
ERROR:
\python.exe: can't find 'main' module in
\Comfy\SageAttention'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions