× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
Traceback (most recent call last):
File "C:\Users\Hard_Core\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\Hard_Core\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\Hard_Core\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\Hard_Core\AppData\Local\Temp\pip-build-env-47_ilwp5\overlay\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "C:\Users\Hard_Core\AppData\Local\Temp\pip-build-env-47_ilwp5\overlay\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires
self.run_setup()
File "C:\Users\Hard_Core\AppData\Local\Temp\pip-build-env-47_ilwp5\overlay\Lib\site-packages\setuptools\build_meta.py", line 516, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\Hard_Core\AppData\Local\Temp\pip-build-env-47_ilwp5\overlay\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup
exec(code, locals())
File "", line 21, in
ModuleNotFoundError: No module named 'torch'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
大佬,运行CXH_DownloadAndLoadFlorence2Model这个节点会报错,说是缺少flash_attn这个东西。
ComfyUI Error Report
Error Details
Exception Message: This modeling file requires the following packages that were not found in your environment: flash_attn. Run
pip install flash_attn
Stack Trace
然后我用pip install flash_attn安装这个环境,得到了下面的报错
C:\Users\Hard_Core>pip install flash_attn Collecting flash_attn Using cached flash_attn-2.6.3.tar.gz (2.6 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [17 lines of output] Traceback (most recent call last): File "C:\Users\Hard_Core\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\Hard_Core\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\Hard_Core\AppData\Local\Programs\Python\Python310\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\Hard_Core\AppData\Local\Temp\pip-build-env-47_ilwp5\overlay\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "C:\Users\Hard_Core\AppData\Local\Temp\pip-build-env-47_ilwp5\overlay\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires
self.run_setup()
File "C:\Users\Hard_Core\AppData\Local\Temp\pip-build-env-47_ilwp5\overlay\Lib\site-packages\setuptools\build_meta.py", line 516, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\Hard_Core\AppData\Local\Temp\pip-build-env-47_ilwp5\overlay\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup
exec(code, locals())
File "", line 21, in
ModuleNotFoundError: No module named 'torch'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
请问这个是怎么回事呢?