User: Microsoft Windows [Version 10.0.22621.1413]
(c) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.

D:\ComfyUI>call venv\Scripts\activate

(venv) D:\ComfyUI>pip install flash-attn --no-build-isolation
Collecting flash-attn
  Using cached flash_attn-2.7.3.tar.gz (3.2 MB)
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: torch in d:\comfyui\venv\lib\site-packages (from flash-attn) (2.5.1+cu118)
Requirement already satisfied: einops in d:\comfyui\venv\lib\site-packages (from flash-attn) (0.8.0)
Requirement already satisfied: filelock in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (3.16.1)
Requirement already satisfied: typing-extensions>=4.8.0 in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (4.12.2)
Requirement already satisfied: networkx in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (3.4.2)
Requirement already satisfied: jinja2 in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (3.1.5)
Requirement already satisfied: fsspec in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (2024.12.0)
Requirement already satisfied: setuptools in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (75.8.0)
Requirement already satisfied: sympy==1.13.1 in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in d:\comfyui\venv\lib\site-packages (from sympy==1.13.1->torch->flash-attn) (1.3.0)
Requirement already satisfied: MarkupSafe>=2.0 in d:\comfyui\venv\lib\site-packages (from jinja2->torch->flash-attn) (3.0.2)
Building wheels for collected packages: flash-attn
  Building wheel for flash-attn (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for flash-attn (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [271 lines of output]
      fatal: not a git repository (or any of the parent directories): .git


      torch.__version__  = 2.5.1+cu118


      D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py:251: _IncompatibleBdistWheel: wheel.bdist_wheel is deprecated, please import it from setuptools
      !!

              ********************************************************************************
              Ensure that any custom bdist_wheel implementation is a subclass of
              setuptools.command.bdist_wheel.bdist_wheel.

              By 2025-Oct-15, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.

              See https://github.com/pypa/wheel/pull/631 for details.
              ********************************************************************************

      !!
        return _build_backend().build_wheel(wheel_directory, config_settings,
      fatal: not a git repository (or any of the parent directories): .git


      torch.__version__  = 2.5.1+cu118


      running bdist_wheel
      D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py:497: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
        warnings.warn(msg.format('we could not find ninja.'))
      Guessing wheel URL:  https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.3/flash_attn-2.7.3+cu11torch2.5cxx11abiFALSE-cp312-cp312-win_amd64.whl
      Precompiled wheel not found. Building from source...
      running build
      running build_py
      creating build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\bert_padding.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_attn_interface.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_attn_triton.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_attn_triton_og.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_blocksparse_attention.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_blocksparse_attn_interface.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\fused_softmax.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn
      creating build\lib.win-amd64-cpython-312\hopper
      copying hopper\benchmark_attn.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\benchmark_flash_attention_fp8.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\benchmark_split_kv.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\flash_attn_interface.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\generate_kernels.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\padding.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\setup.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_attn_kvcache.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_flash_attn.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_kvcache.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_util.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\__init__.py -> build\lib.win-amd64-cpython-312\hopper
      creating build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\bench.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\bwd_prefill.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\bwd_ref.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\fwd_decode.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\fwd_prefill.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\fwd_ref.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\interface_fa.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\interface_torch.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\test.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\utils.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      creating build\lib.win-amd64-cpython-312\flash_attn\layers
      copying flash_attn\layers\patch_embed.py -> build\lib.win-amd64-cpython-312\flash_attn\layers
      copying flash_attn\layers\rotary.py -> build\lib.win-amd64-cpython-312\flash_attn\layers
      copying flash_attn\layers\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\layers
      creating build\lib.win-amd64-cpython-312\flash_attn\losses
      copying flash_attn\losses\cross_entropy.py -> build\lib.win-amd64-cpython-312\flash_attn\losses
      copying flash_attn\losses\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\losses
      creating build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\baichuan.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\bert.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\bigcode.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\btlm.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\falcon.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\gpt.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\gptj.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\gpt_neox.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\llama.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\opt.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\vit.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      creating build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\block.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\embedding.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\mha.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\mlp.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      creating build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\activations.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\fused_dense.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\layer_norm.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\rms_norm.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      creating build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\benchmark.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\distributed.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\generation.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\pretrained.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      creating build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\cross_entropy.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\k_activations.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\layer_norm.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\linear.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\mlp.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\rotary.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      running build_ext
      D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py:382: UserWarning: Error checking compiler version for cl: [WinError 2] Не удается найти указанный файл
        warnings.warn(f'Error checking compiler version for {compiler}: {error}')
      Traceback (most recent call last):
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\fancy_getopt.py", line 247, in getopt
          opts, args = getopt.getopt(args, short_opts, self.long_opts)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\getopt.py", line 93, in getopt
          opts, args = do_longs(opts, args[0][2:], longopts, args[1:])
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\getopt.py", line 157, in do_longs
          has_arg, opt = long_has_args(opt, longopts)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\getopt.py", line 174, in long_has_args
          raise GetoptError(_('option --%s not recognized') % opt, opt)
      getopt.GetoptError: option --dist-info-dir not recognized

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\core.py", line 173, in setup
          ok = dist.parse_command_line()
               ^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\dist.py", line 483, in parse_command_line
          args = self._parse_command_opts(parser, args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\dist.py", line 900, in _parse_command_opts
          nargs = _Distribution._parse_command_opts(self, parser, args)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\dist.py", line 587, in _parse_command_opts
          (args, opts) = parser.getopt(args[1:])
                         ^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\fancy_getopt.py", line 249, in getopt
          raise DistutilsArgError(msg)
      distutils.errors.DistutilsArgError: option --dist-info-dir not recognized

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 438, in build_wheel
          return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 426, in _build
          return self._build_with_temp_dir(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 407, in _build_with_temp_dir
          self.run_setup()
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 518, in <module>
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\__init__.py", line 117, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\core.py", line 175, in setup
          raise SystemExit(gen_usage(dist.script_name) + f"\nerror: {msg}")
      SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
         or: setup.py --help [cmd1 cmd2 ...]
         or: setup.py --help-commands
         or: setup.py cmd --help

      error: option --dist-info-dir not recognized

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "<string>", line 478, in run
        File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 240, in urlretrieve
          with contextlib.closing(urlopen(url, data)) as fp:
                                  ^^^^^^^^^^^^^^^^^^
        File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 215, in urlopen
          return opener.open(url, data, timeout)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 521, in open
          response = meth(req, response)
                     ^^^^^^^^^^^^^^^^^^^
        File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 630, in http_response
          response = self.parent.error(
                     ^^^^^^^^^^^^^^^^^^
        File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 559, in error
          return self._call_chain(*args)
                 ^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 492, in _call_chain
          result = func(*args)
                   ^^^^^^^^^^^
        File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\urllib\request.py", line 639, in http_error_default
          raise HTTPError(req.full_url, code, msg, hdrs, fp)
      urllib.error.HTTPError: HTTP Error 404: Not Found

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
        File "D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "D:\ComfyUI\venv\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 "D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 444, in build_wheel
          return _build(['bdist_wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 426, in _build
          return self._build_with_temp_dir(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 407, in _build_with_temp_dir
          self.run_setup()
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 518, in <module>
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\__init__.py", line 117, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\core.py", line 186, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\core.py", line 202, in run_commands
          dist.run_commands()
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\dist.py", line 983, in run_commands
          self.run_command(cmd)
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\dist.py", line 999, in run_command
          super().run_command(command)
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\dist.py", line 1002, in run_command
          cmd_obj.run()
        File "<string>", line 495, in run
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_vendor\wheel\bdist_wheel.py", line 368, in run
          self.run_command("build")
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\cmd.py", line 339, in run_command
          self.distribution.run_command(command)
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\dist.py", line 999, in run_command
          super().run_command(command)
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\dist.py", line 1002, in run_command
          cmd_obj.run()
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\command\build.py", line 136, in run
          self.run_command(cmd_name)
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\cmd.py", line 339, in run_command
          self.distribution.run_command(command)
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\dist.py", line 999, in run_command
          super().run_command(command)
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\dist.py", line 1002, in run_command
          cmd_obj.run()
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\command\build_ext.py", line 99, in run
          _build_ext.run(self)
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 365, in run
          self.build_extensions()
        File "D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py", line 520, in build_extensions
          _check_cuda_version(compiler_name, compiler_version)
        File "D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py", line 415, in _check_cuda_version
          raise RuntimeError(CUDA_MISMATCH_MESSAGE.format(cuda_str_version, torch.version.cuda))
      RuntimeError:
      The detected CUDA version (12.6) mismatches the version that was used to compile
      PyTorch (11.8). Please make sure to use the same CUDA versions.

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for flash-attn
Failed to build flash-attn
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (flash-attn)

(venv) D:\ComfyUI>conda install cudatoolkit==12.6
Channels:
 - defaults
 - pytorch
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - cudatoolkit==12.6

Current channels:

  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - https://repo.anaconda.com/pkgs/msys2
  - https://conda.anaconda.org/pytorch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.



(venv) D:\ComfyUI>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Wed_Oct_30_01:18:48_Pacific_Daylight_Time_2024
Cuda compilation tools, release 12.6, V12.6.85
Build cuda_12.6.r12.6/compiler.35059454_0

(venv) D:\ComfyUI>
Assistant: вашего вывода видно, что при попытке установить `flash-attn` возникли проблемы, связанные с несовпадением версий CUDA. Давайте разберемся с ошибками и выясним, как их исправить.

### Выделенные проблемы

1. **Несовпадение версий CUDA**: Ваша версия CUDA (12.6) не совпадает с версией CUDA, для которой была собрана PyTorch (11.8). Все библиотеки CUDA должны быть согласованы между собой.

2. **Ошибка при сборке**: Попытка установить `flash-attn` заблокирована из-за того, что он не смог собрать необходимые колеса из-за вышеуказанного несовпадения.

3. **Отсутствие пакета CUDAToolkit**: Вы пытались установить `cudatoolkit==12.6` с помощью conda, и он не был найден в текущих каналах.

### Возможные решения

1. **Переустановка PyTorch с нужной версией CUDA**:
   Если `flash-attn` требует CUDA 12.6, тогда вам нужно установить PyTorch, собранный для этой версии CUDA. Используйте команду pip для установки PyTorch с CUDA 12.6:

   ```bash
   pip uninstall torch
   pip install torch==2.5.1+cu126 -f https://download.pytorch.org/whl/torch_stable.html
   ```

   Примечание: Похоже, что версия `torch` 2.5.1 не поддерживает CUDA 12.x. Возможно, вам стоит попробовать другую версию, более подходящую под актуальные библиотеки.

2. **Проверка совместимости flash-attn**:
   Убедитесь, что версия `flash-attn`, которую вы пытаетесь установить, совместима с установленной версией PyTorch. Иногда необходимо найти другую версию `flash-attn`, поддерживающую вашу версию PyTorch.

3. **Изменение среды Conda**:
   Если вы используете Conda для управления пакетами и окружениями, возможно, вам стоит создать новую среду с нужными версиями. Для этого выполните следующие команды:

   ```bash
   conda create -n ComfyUI python=3.10
   conda activate ComfyUI
   conda install pytorch torchvision torchaudio cudatoolkit=12.6 -c pytorch
   ```

   А затем попробуйте снова установить `flash-attn`.

4. **Установка CUDA Toolkit через Conda**:
   Если вы хотите установить конкретную версию CUDAToolkit через conda, вам стоит рассмотреть возможность создания новой среды и использования команд, указанных выше, так как CUDA Toolkit может быть недоступен в некоторых каналах.

5. **Обновление pip, setuptools и wheel**:
   Перед установкой убедитесь, что у вас установлены последние версии этих инструментов:

   ```bash
   pip install --upgrade pip setuptools wheel
   ```

### Заключение

Если ни одно из вышеуказанных решений не работает, пожалуйста, предоставьте информацию о версиях всех используемых библиотек, а также попробуйте указать какую версию `flash-attn` вы хотите установить, чтобы помочь
User: D:\ComfyUI>pip install flash-attn --no-build-isolation
Collecting flash-attn
  Using cached flash_attn-2.7.3.tar.gz (3.2 MB)
  Preparing metadata (pyproject.toml) ... done
ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\cli\base_command.py", line 105, in _run_wrapper
    status = _inner_run()
             ^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\cli\base_command.py", line 96, in _inner_run
    return self.run(options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\cli\req_command.py", line 67, in wrapper
    return func(self, options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\commands\install.py", line 379, in run
    requirement_set = resolver.resolve(
                      ^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 95, in resolve
    result = self._result = resolver.resolve(
                            ^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 546, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 397, in resolve
    self._add_to_criteria(self.state.criteria, r, parent=None)
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
    if not criterion.candidates:
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\resolvelib\structs.py", line 156, in __bool__
    return bool(self._sequence)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 174, in __bool__
    return any(self)
           ^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 162, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
                       ^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 53, in _iter_built
    candidate = func()
                ^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 187, in _make_candidate_from_link
    base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 233, in _make_base_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
                                       ^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 304, in __init__
    super().__init__(
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 159, in __init__
    self.dist = self._prepare()
                ^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 236, in _prepare
    dist = self._prepare_distribution()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 315, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\operations\prepare.py", line 527, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\operations\prepare.py", line 642, in _prepare_linked_requirement
    dist = _get_prepared_distribution(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\operations\prepare.py", line 72, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\distributions\sdist.py", line 69, in prepare_distribution_metadata
    self.req.prepare_metadata()
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\req\req_install.py", line 575, in prepare_metadata
    self.metadata_directory = generate_metadata(
                              ^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\operations\build\metadata.py", line 35, in generate_metadata
    distinfo_dir = backend.prepare_metadata_for_build_wheel(metadata_dir)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\utils\misc.py", line 722, in prepare_metadata_for_build_wheel
    return super().prepare_metadata_for_build_wheel(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_impl.py", line 186, in prepare_metadata_for_build_wheel
    return self._call_hook('prepare_metadata_for_build_wheel', {
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_impl.py", line 321, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'setuptools'


D:\ComfyUI>call venv\Scripts\activate

(venv) D:\ComfyUI>pip install flash-attn --no-build-isolation
Collecting flash-attn
  Using cached flash_attn-2.7.3.tar.gz (3.2 MB)
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [32 lines of output]
      fatal: not a git repository (or any of the parent directories): .git
      <string>:106: UserWarning: flash_attn was requested, but nvcc was not found.  Are you sure your environment has nvcc available?  If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.


      torch.__version__  = 2.5.1+cpu


      Traceback (most recent call last):
        File "D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "D:\ComfyUI\venv\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 "D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 149, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 377, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 190, in <module>
        File "D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py", line 1078, in CUDAExtension
          library_dirs += library_paths(cuda=True)
                          ^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py", line 1216, in library_paths
          paths.append(_join_cuda_home(lib_dir))
                       ^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py", line 2416, in _join_cuda_home
          raise OSError('CUDA_HOME environment variable is not set. '
      OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

(venv) D:\ComfyUI>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0

(venv) D:\ComfyUI>
User: Microsoft Windows [Version 10.0.22621.1413]
(c) Корпорация Майкрософт (Microsoft Corporation). Все права защищены.

D:\ComfyUI>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0

D:\ComfyUI>pip install flash-attn --no-build-isolation
Collecting flash-attn
  Using cached flash_attn-2.7.3.tar.gz (3.2 MB)
  Preparing metadata (pyproject.toml) ... done
ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\cli\base_command.py", line 105, in _run_wrapper
    status = _inner_run()
             ^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\cli\base_command.py", line 96, in _inner_run
    return self.run(options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\cli\req_command.py", line 67, in wrapper
    return func(self, options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\commands\install.py", line 379, in run
    requirement_set = resolver.resolve(
                      ^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 95, in resolve
    result = self._result = resolver.resolve(
                            ^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 546, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 397, in resolve
    self._add_to_criteria(self.state.criteria, r, parent=None)
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
    if not criterion.candidates:
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\resolvelib\structs.py", line 156, in __bool__
    return bool(self._sequence)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 174, in __bool__
    return any(self)
           ^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 162, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
                       ^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 53, in _iter_built
    candidate = func()
                ^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 187, in _make_candidate_from_link
    base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 233, in _make_base_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
                                       ^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 304, in __init__
    super().__init__(
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 159, in __init__
    self.dist = self._prepare()
                ^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 236, in _prepare
    dist = self._prepare_distribution()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 315, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\operations\prepare.py", line 527, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\operations\prepare.py", line 642, in _prepare_linked_requirement
    dist = _get_prepared_distribution(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\operations\prepare.py", line 72, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\distributions\sdist.py", line 69, in prepare_distribution_metadata
    self.req.prepare_metadata()
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\req\req_install.py", line 575, in prepare_metadata
    self.metadata_directory = generate_metadata(
                              ^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\operations\build\metadata.py", line 35, in generate_metadata
    distinfo_dir = backend.prepare_metadata_for_build_wheel(metadata_dir)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_internal\utils\misc.py", line 722, in prepare_metadata_for_build_wheel
    return super().prepare_metadata_for_build_wheel(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_impl.py", line 186, in prepare_metadata_for_build_wheel
    return self._call_hook('prepare_metadata_for_build_wheel', {
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_impl.py", line 321, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'setuptools'


D:\ComfyUI>call venv\Scripts\activate

(venv) D:\ComfyUI>pip install flash-attn --no-build-isolation
Collecting flash-attn
  Using cached flash_attn-2.7.3.tar.gz (3.2 MB)
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [32 lines of output]
      fatal: not a git repository (or any of the parent directories): .git
      <string>:106: UserWarning: flash_attn was requested, but nvcc was not found.  Are you sure your environment has nvcc available?  If you're installing within a container from https://hub.docker.com/r/pytorch/pytorch, only images whose names contain 'devel' will provide nvcc.


      torch.__version__  = 2.5.1+cpu


      Traceback (most recent call last):
        File "D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "D:\ComfyUI\venv\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 "D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 149, in prepare_metadata_for_build_wheel
          return hook(metadata_directory, config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 377, in prepare_metadata_for_build_wheel
          self.run_setup()
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
        File "D:\ComfyUI\venv\Lib\site-packages\setuptools\build_meta.py", line 320, in run_setup
          exec(code, locals())
        File "<string>", line 190, in <module>
        File "D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py", line 1078, in CUDAExtension
          library_dirs += library_paths(cuda=True)
                          ^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py", line 1216, in library_paths
          paths.append(_join_cuda_home(lib_dir))
                       ^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py", line 2416, in _join_cuda_home
          raise OSError('CUDA_HOME environment variable is not set. '
      OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

(venv) D:\ComfyUI>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0

(venv) D:\ComfyUI>

(venv) D:\ComfyUI>pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu124
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu124
Requirement already satisfied: torch in d:\comfyui\venv\lib\site-packages (2.5.1)
Requirement already satisfied: torchvision in d:\comfyui\venv\lib\site-packages (0.20.1)
Requirement already satisfied: torchaudio in d:\comfyui\venv\lib\site-packages (2.5.1)
Requirement already satisfied: filelock in d:\comfyui\venv\lib\site-packages (from torch) (3.16.1)
Requirement already satisfied: typing-extensions>=4.8.0 in d:\comfyui\venv\lib\site-packages (from torch) (4.12.2)
Requirement already satisfied: networkx in d:\comfyui\venv\lib\site-packages (from torch) (3.4.2)
Requirement already satisfied: jinja2 in d:\comfyui\venv\lib\site-packages (from torch) (3.1.5)
Requirement already satisfied: fsspec in d:\comfyui\venv\lib\site-packages (from torch) (2024.12.0)
Requirement already satisfied: setuptools in d:\comfyui\venv\lib\site-packages (from torch) (75.8.0)
Requirement already satisfied: sympy==1.13.1 in d:\comfyui\venv\lib\site-packages (from torch) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in d:\comfyui\venv\lib\site-packages (from sympy==1.13.1->torch) (1.3.0)
Requirement already satisfied: numpy in d:\comfyui\venv\lib\site-packages (from torchvision) (1.26.4)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in d:\comfyui\venv\lib\site-packages (from torchvision) (11.1.0)
Requirement already satisfied: MarkupSafe>=2.0 in d:\comfyui\venv\lib\site-packages (from jinja2->torch) (3.0.2)

(venv) D:\ComfyUI>pip uninstall torch torchvision torchaudio
Found existing installation: torch 2.5.1
Uninstalling torch-2.5.1:
  Would remove:
    d:\comfyui\venv\lib\site-packages\functorch\*
    d:\comfyui\venv\lib\site-packages\torch-2.5.1.dist-info\*
    d:\comfyui\venv\lib\site-packages\torch\*
    d:\comfyui\venv\lib\site-packages\torchgen\*
    d:\comfyui\venv\scripts\convert-caffe2-to-onnx.exe
    d:\comfyui\venv\scripts\convert-onnx-to-caffe2.exe
    d:\comfyui\venv\scripts\torchfrtrace.exe
    d:\comfyui\venv\scripts\torchrun.exe
Proceed (Y/n)? y
  Successfully uninstalled torch-2.5.1
Found existing installation: torchvision 0.20.1
Uninstalling torchvision-0.20.1:
  Would remove:
    d:\comfyui\venv\lib\site-packages\torchvision-0.20.1.dist-info\*
    d:\comfyui\venv\lib\site-packages\torchvision\*
Proceed (Y/n)? y
  Successfully uninstalled torchvision-0.20.1
Found existing installation: torchaudio 2.5.1
Uninstalling torchaudio-2.5.1:
  Would remove:
    d:\comfyui\venv\lib\site-packages\torchaudio-2.5.1.dist-info\*
    d:\comfyui\venv\lib\site-packages\torchaudio\*
    d:\comfyui\venv\lib\site-packages\torio\*
Proceed (Y/n)? y
  Successfully uninstalled torchaudio-2.5.1

(venv) D:\ComfyUI>pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu118
Collecting torch
  Using cached https://download.pytorch.org/whl/cu118/torch-2.5.1%2Bcu118-cp312-cp312-win_amd64.whl (2700.1 MB)
Collecting torchvision
  Using cached https://download.pytorch.org/whl/cu118/torchvision-0.20.1%2Bcu118-cp312-cp312-win_amd64.whl (5.3 MB)
Collecting torchaudio
  Using cached https://download.pytorch.org/whl/cu118/torchaudio-2.5.1%2Bcu118-cp312-cp312-win_amd64.whl (4.0 MB)
Requirement already satisfied: filelock in d:\comfyui\venv\lib\site-packages (from torch) (3.16.1)
Requirement already satisfied: typing-extensions>=4.8.0 in d:\comfyui\venv\lib\site-packages (from torch) (4.12.2)
Requirement already satisfied: networkx in d:\comfyui\venv\lib\site-packages (from torch) (3.4.2)
Requirement already satisfied: jinja2 in d:\comfyui\venv\lib\site-packages (from torch) (3.1.5)
Requirement already satisfied: fsspec in d:\comfyui\venv\lib\site-packages (from torch) (2024.12.0)
Requirement already satisfied: setuptools in d:\comfyui\venv\lib\site-packages (from torch) (75.8.0)
Requirement already satisfied: sympy==1.13.1 in d:\comfyui\venv\lib\site-packages (from torch) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in d:\comfyui\venv\lib\site-packages (from sympy==1.13.1->torch) (1.3.0)
Requirement already satisfied: numpy in d:\comfyui\venv\lib\site-packages (from torchvision) (1.26.4)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in d:\comfyui\venv\lib\site-packages (from torchvision) (11.1.0)
Requirement already satisfied: MarkupSafe>=2.0 in d:\comfyui\venv\lib\site-packages (from jinja2->torch) (3.0.2)
Installing collected packages: torch, torchvision, torchaudio
Successfully installed torch-2.5.1+cu118 torchaudio-2.5.1+cu118 torchvision-0.20.1+cu118

(venv) D:\ComfyUI>pip install flash-attn --no-build-isolation
Collecting flash-attn
  Using cached flash_attn-2.7.3.tar.gz (3.2 MB)
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: torch in d:\comfyui\venv\lib\site-packages (from flash-attn) (2.5.1+cu118)
Requirement already satisfied: einops in d:\comfyui\venv\lib\site-packages (from flash-attn) (0.8.0)
Requirement already satisfied: filelock in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (3.16.1)
Requirement already satisfied: typing-extensions>=4.8.0 in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (4.12.2)
Requirement already satisfied: networkx in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (3.4.2)
Requirement already satisfied: jinja2 in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (3.1.5)
Requirement already satisfied: fsspec in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (2024.12.0)
Requirement already satisfied: setuptools in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (75.8.0)
Requirement already satisfied: sympy==1.13.1 in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in d:\comfyui\venv\lib\site-packages (from sympy==1.13.1->torch->flash-attn) (1.3.0)
Requirement already satisfied: MarkupSafe>=2.0 in d:\comfyui\venv\lib\site-packages (from jinja2->torch->flash-attn) (3.0.2)
Building wheels for collected packages: flash-attn
  Building wheel for flash-attn (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for flash-attn (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [119 lines of output]
      fatal: not a git repository (or any of the parent directories): .git


      torch.__version__  = 2.5.1+cu118


      D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py:251: _IncompatibleBdistWheel: wheel.bdist_wheel is deprecated, please import it from setuptools
      !!

              ********************************************************************************
              Ensure that any custom bdist_wheel implementation is a subclass of
              setuptools.command.bdist_wheel.bdist_wheel.

              By 2025-Oct-15, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.

              See https://github.com/pypa/wheel/pull/631 for details.
              ********************************************************************************

      !!
        return _build_backend().build_wheel(wheel_directory, config_settings,
      fatal: not a git repository (or any of the parent directories): .git


      torch.__version__  = 2.5.1+cu118


      running bdist_wheel
      D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py:497: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
        warnings.warn(msg.format('we could not find ninja.'))
      Guessing wheel URL:  https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.3/flash_attn-2.7.3+cu11torch2.5cxx11abiFALSE-cp312-cp312-win_amd64.whl
      Precompiled wheel not found. Building from source...
      running build
      running build_py
      creating build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\bert_padding.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_attn_interface.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_attn_triton.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_attn_triton_og.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_blocksparse_attention.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_blocksparse_attn_interface.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\fused_softmax.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn
      creating build\lib.win-amd64-cpython-312\hopper
      copying hopper\benchmark_attn.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\benchmark_flash_attention_fp8.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\benchmark_split_kv.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\flash_attn_interface.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\generate_kernels.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\padding.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\setup.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_attn_kvcache.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_flash_attn.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_kvcache.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_util.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\__init__.py -> build\lib.win-amd64-cpython-312\hopper
      creating build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\bench.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\bwd_prefill.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\bwd_ref.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\fwd_decode.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\fwd_prefill.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\fwd_ref.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\interface_fa.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\interface_torch.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\test.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\utils.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      creating build\lib.win-amd64-cpython-312\flash_attn\layers
      copying flash_attn\layers\patch_embed.py -> build\lib.win-amd64-cpython-312\flash_attn\layers
      copying flash_attn\layers\rotary.py -> build\lib.win-amd64-cpython-312\flash_attn\layers
      copying flash_attn\layers\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\layers
      creating build\lib.win-amd64-cpython-312\flash_attn\losses
      copying flash_attn\losses\cross_entropy.py -> build\lib.win-amd64-cpython-312\flash_attn\losses
      copying flash_attn\losses\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\losses
      creating build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\baichuan.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\bert.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\bigcode.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\btlm.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\falcon.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\gpt.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\gptj.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\gpt_neox.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\llama.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\opt.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\vit.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      creating build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\block.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\embedding.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\mha.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\mlp.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      creating build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\activations.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\fused_dense.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\layer_norm.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\rms_norm.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      creating build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\benchmark.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\distributed.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\generation.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\pretrained.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      creating build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\cross_entropy.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\k_activations.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\layer_norm.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\linear.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\mlp.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\rotary.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      running build_ext
      D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py:382: UserWarning: Error checking compiler version for cl: [WinError 2] Не удается найти указанный файл
        warnings.warn(f'Error checking compiler version for {compiler}: {error}')
      building 'flash_attn_2_cuda' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for flash-attn
Failed to build flash-attn
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (flash-attn)

(venv) D:\ComfyUI>pip install flash-attn --no-build-isolation
Collecting flash-attn
  Using cached flash_attn-2.7.3.tar.gz (3.2 MB)
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: torch in d:\comfyui\venv\lib\site-packages (from flash-attn) (2.5.1+cu118)
Requirement already satisfied: einops in d:\comfyui\venv\lib\site-packages (from flash-attn) (0.8.0)
Requirement already satisfied: filelock in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (3.16.1)
Requirement already satisfied: typing-extensions>=4.8.0 in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (4.12.2)
Requirement already satisfied: networkx in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (3.4.2)
Requirement already satisfied: jinja2 in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (3.1.5)
Requirement already satisfied: fsspec in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (2024.12.0)
Requirement already satisfied: setuptools in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (75.8.0)
Requirement already satisfied: sympy==1.13.1 in d:\comfyui\venv\lib\site-packages (from torch->flash-attn) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in d:\comfyui\venv\lib\site-packages (from sympy==1.13.1->torch->flash-attn) (1.3.0)
Requirement already satisfied: MarkupSafe>=2.0 in d:\comfyui\venv\lib\site-packages (from jinja2->torch->flash-attn) (3.0.2)
Building wheels for collected packages: flash-attn
  Building wheel for flash-attn (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for flash-attn (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [119 lines of output]
      fatal: not a git repository (or any of the parent directories): .git


      torch.__version__  = 2.5.1+cu118


      D:\ComfyUI\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py:251: _IncompatibleBdistWheel: wheel.bdist_wheel is deprecated, please import it from setuptools
      !!

              ********************************************************************************
              Ensure that any custom bdist_wheel implementation is a subclass of
              setuptools.command.bdist_wheel.bdist_wheel.

              By 2025-Oct-15, you need to update your project and remove deprecated calls
              or your builds will no longer be supported.

              See https://github.com/pypa/wheel/pull/631 for details.
              ********************************************************************************

      !!
        return _build_backend().build_wheel(wheel_directory, config_settings,
      fatal: not a git repository (or any of the parent directories): .git


      torch.__version__  = 2.5.1+cu118


      running bdist_wheel
      D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py:497: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
        warnings.warn(msg.format('we could not find ninja.'))
      Guessing wheel URL:  https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.3/flash_attn-2.7.3+cu11torch2.5cxx11abiFALSE-cp312-cp312-win_amd64.whl
      Precompiled wheel not found. Building from source...
      running build
      running build_py
      creating build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\bert_padding.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_attn_interface.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_attn_triton.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_attn_triton_og.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_blocksparse_attention.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\flash_blocksparse_attn_interface.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\fused_softmax.py -> build\lib.win-amd64-cpython-312\flash_attn
      copying flash_attn\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn
      creating build\lib.win-amd64-cpython-312\hopper
      copying hopper\benchmark_attn.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\benchmark_flash_attention_fp8.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\benchmark_split_kv.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\flash_attn_interface.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\generate_kernels.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\padding.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\setup.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_attn_kvcache.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_flash_attn.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_kvcache.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\test_util.py -> build\lib.win-amd64-cpython-312\hopper
      copying hopper\__init__.py -> build\lib.win-amd64-cpython-312\hopper
      creating build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\bench.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\bwd_prefill.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\bwd_ref.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\fwd_decode.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\fwd_prefill.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\fwd_ref.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\interface_fa.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\interface_torch.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\test.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\utils.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      copying flash_attn\flash_attn_triton_amd\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\flash_attn_triton_amd
      creating build\lib.win-amd64-cpython-312\flash_attn\layers
      copying flash_attn\layers\patch_embed.py -> build\lib.win-amd64-cpython-312\flash_attn\layers
      copying flash_attn\layers\rotary.py -> build\lib.win-amd64-cpython-312\flash_attn\layers
      copying flash_attn\layers\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\layers
      creating build\lib.win-amd64-cpython-312\flash_attn\losses
      copying flash_attn\losses\cross_entropy.py -> build\lib.win-amd64-cpython-312\flash_attn\losses
      copying flash_attn\losses\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\losses
      creating build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\baichuan.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\bert.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\bigcode.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\btlm.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\falcon.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\gpt.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\gptj.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\gpt_neox.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\llama.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\opt.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\vit.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      copying flash_attn\models\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\models
      creating build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\block.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\embedding.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\mha.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\mlp.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      copying flash_attn\modules\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\modules
      creating build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\activations.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\fused_dense.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\layer_norm.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\rms_norm.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      copying flash_attn\ops\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\ops
      creating build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\benchmark.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\distributed.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\generation.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\pretrained.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      copying flash_attn\utils\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\utils
      creating build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\cross_entropy.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\k_activations.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\layer_norm.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\linear.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\mlp.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\rotary.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      copying flash_attn\ops\triton\__init__.py -> build\lib.win-amd64-cpython-312\flash_attn\ops\triton
      running build_ext
      D:\ComfyUI\venv\Lib\site-packages\torch\utils\cpp_extension.py:382: UserWarning: Error checking compiler version for cl: [WinError 2] Не удается найти указанный файл
        warnings.warn(f'Error checking compiler version for {compiler}: {error}')
      building 'flash_attn_2_cuda' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for flash-attn
Failed to build flash-attn
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (flash-attn)

(venv) D:\ComfyUI>
Assistant: