【miniconda&Windows高版本cuda安装Comfyui-CatVTON超级踩坑尝试环境安装成功,但是运行节点时只有国内环境工作流无法完成】

error: command ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin\nvcc’ failed with exit code 2

Comfyui-CatVTON插件作者建议安装环境是 python=3.10 Cuda=12.1 torch=2.1.2 而我的cuda版本是12.6、torch版本是2.3.1所以我想试试高版本环境下安装会不会发生错误,结果错误一堆我只好按要求重新创建新环境

安装时,请确保 PyTorch 的运行时 CUDA 版本与系统的 CUDA 版本一致;否则,可能会发生错误。
如果存在错位,解决方案是使用与系统版本匹配的 CUDA 版本重新安装 PyTorch。有关使用正确的 CUDA 版本安装 PyTorch
的更多信息,您可以访问 PyTorch 入门页面(了解以前的版本)。

记录命令信息中环境新添加的第三方库列如:tensorboard (from detectron2=0.6)、black (from detectron2=0.6)等信息、但是是conda环境管理看需求删除没用的包就行

Collecting tensorboard (from detectron2==0.6)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d4/41/dccba8c5f955bc35b6110ff78574e4e5c8226ad62f08e732096c3861309b/tensorboard-2.17.1-py3-none-any.whl (5.5 MB)
     ---------------------------------------- 5.5/5.5 MB 1.3 MB/s eta 0:00:00
Requirement already satisfied: fvcore<0.1.6,>=0.1.5 in c:\newlyprogram\miniconda3\envs\cf\lib\site-packages (from detectron2==0.6) (0.1.5.post20221221)
Collecting iopath<0.1.10,>=0.1.7 (from detectron2==0.6)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/af/20/65dd9bd25a1eb7fa35b5ae38d289126af065f8a0c1f6a90564f4bff0f89d/iopath-0.1.9-py3-none-any.whl (27 kB)
Requirement already satisfied: omegaconf<2.4,>=2.1 in c:\newlyprogram\miniconda3\envs\cf\lib\site-packages (from detectron2==0.6) (2.3.0)
Requirement already satisfied: hydra-core>=1.1 in c:\newlyprogram\miniconda3\envs\cf\lib\site-packages (from detectron2==0.6) (1.3.2)
Collecting black (from detectron2==0.6)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/87/a0/6d2e4175ef364b8c4b64f8441ba041ed65c63ea1db2720d61494ac711c15/black-24.8.0-cp310-cp310-win_amd64.whl (1.4 MB)
     ---------------------------------------- 1.4/1.4 MB 2.2 MB/s eta 0:00:00
Installing collected packages: werkzeug, tensorboard-data-server, pathspec, mypy-extensions, markdown, cloudpickle, tensorboard, iopath, black, pycocotools, detectron2
  Attempting uninstall: iopath
    Found existing installation: iopath 0.1.10
    Uninstalling iopath-0.1.10:
      Successfully uninstalled iopath-0.1.10
  DEPRECATION: Legacy editable install of detectron2==0.6 from file:///C:/Aiart/ComfyUI/custom_nodes/Comfyui-CatVTON/Detectron2_DensePose/detectron2 (setup.py develop) is deprecated. pip 25.0 will enforce this behaviour change. A possible replacement is to add a pyproject.toml or enable --use-pep517, and use setuptools >= 64. If the resulting installation is not behaving as expected, try using --config-settings editable_mode=compat. Please consult the setuptools documentation for more information. Discussion can be found at https://github.com/pypa/pip/issues/11457
  Running setup.py develop for detectron2
  Running setup.py develop for detectron2
    error: subprocess-exited-with-error

    × python setup.py develop did not run successfully.
    │ exit code: 1
    ╰─> [104 lines of output]
        running develop
        C:\NewlyProgram\miniconda3\envs\cf\lib\site-packages\setuptools\command\develop.py:42: EasyInstallDeprecationWarning: easy_install command is deprecated.
        !!

                ********************************************************************************
                Please avoid running ``setup.py`` and ``easy_install``.
                Instead, use pypa/build, pypa/installer or other
                standards-based tools.

                See https://github.com/pypa/setuptools/issues/917 for details.
                ********************************************************************************

        !!
          easy_install.initialize_options(self)
        C:\NewlyProgram\miniconda3\envs\cf\lib\site-packages\setuptools\_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
        !!

                ********************************************************************************
                Please avoid running ``setup.py`` directly.
                Instead, use pypa/build, pypa/installer or other
                standards-based tools.

                See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
                ********************************************************************************

        !!
          self.initialize_options()
        running egg_info
        creating detectron2.egg-info
        writing detectron2.egg-info\PKG-INFO
        writing dependency_links to detectron2.egg-info\dependency_links.txt
        writing requirements to detectron2.egg-info\requires.txt
        writing top-level names to detectron2.egg-info\top_level.txt
        writing manifest file 'detectron2.egg-info\SOURCES.txt'
        C:\NewlyProgram\miniconda3\envs\cf\lib\site-packages\torch\utils\cpp_extension.py:499: 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.'))
        reading manifest file 'detectron2.egg-info\SOURCES.txt'
        adding license file 'LICENSE'
        writing manifest file 'detectron2.egg-info\SOURCES.txt'
        running build_ext
        C:\NewlyProgram\miniconda3\envs\cf\lib\site-packages\torch\utils\cpp_extension.py:384: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
          warnings.warn(f'Error checking compiler version for {compiler}: {error}')
        C:\NewlyProgram\miniconda3\envs\cf\lib\site-packages\torch\utils\cpp_extension.py:418: UserWarning: The detected CUDA version (12.6) has a minor version mismatch with the version that was used to compile PyTorch (12.1). Most likely this shouldn't be a problem.
          warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda))
        building 'detectron2._C' extension
        creating build
        creating build\temp.win-amd64-cpython-310
        creating build\temp.win-amd64-cpython-310\Release
        creating build\temp.win-amd64-cpython-310\Release\Aiart
        creating build\temp.win-amd64-cpython-310\Release\Aiart\ComfyUI
        creating build\temp.win-amd64-cpython-310\Release\Aiart\ComfyUI\custom_nodes
        creating build\temp.win-amd64-cpython-310\Release\Aiart\ComfyUI\custom_nodes\Comfyui-CatVTON
        creating build\temp.win-amd64-cpython-310\Release\Aiart\ComfyUI\custom_nodes\Comfyui-CatVTON\Detectron2_DensePose
    "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin\nvcc" -c C:\Aiart\ComfyUI\custom_nodes\Comfyui-CatVTON\Detectron2_DensePose\detectron2\detectron2\layers\csrc\nms_rotated\nms_rotated_cuda.cu -o build\temp.win-amd64-cpython-310\Release\Aiart\ComfyUI\custom_nodes\Comfyui-CatVTON\Detectron2_DensePose\detectron2\detectron2\layers\csrc\nms_rotated\nms_rotated_cuda.obj -IC:\Aiart\ComfyUI\custom_nodes\Comfyui-CatVTON\Detectron2_DensePose\detectron2\detectron2\layers\csrc -IC:\NewlyProgram\miniconda3\envs\cf\lib\site-packages\torch\include -IC:\NewlyProgram\miniconda3\envs\cf\lib\site-packages\torch\include\torch\csrc\api\include -IC:\NewlyProgram\miniconda3\envs\cf\lib\site-packages\torch\include\TH -IC:\NewlyProgram\miniconda3\envs\cf\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\include" -IC:\NewlyProgram\miniconda3\envs\cf\include -IC:\NewlyProgram\miniconda3\envs\cf\Include "-IC:\NewlyProgram\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include" "-IC:\NewlyProgram\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\ATLMFC\include" "-IC:\NewlyProgram\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4068 -Xcompiler /wd4067 -Xcompiler /wd4624 -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -O3 -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_89,code=compute_89 -gencode=arch=compute_89,code=sm_89 -std=c++17 --use-local-env
    C:\Aiart\ComfyUI\custom_nodes\Comfyui-CatVTON\Detectron2_DensePose\detectron2\detectron2\layers\csrc\nms_rotated\nms_rotated_cuda.cu(14): error: name must be a namespace name
      using namespace detectron2;
                      ^

    C:\Aiart\ComfyUI\custom_nodes\Comfyui-CatVTON\Detectron2_DensePose\detectron2\detectron2\layers\csrc\nms_rotated\nms_rotated_cuda.cu(68): error: identifier "single_box_iou_rotated" is undefined
            if (single_box_iou_rotated<T>(cur_box, block_boxes &
引用中提到的错误提示"ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device"表示在安装pytorch出现了磁盘空间不足的问题。这可能是由于磁盘空间不足导致无法安装所需的包。 要解决这个问题,你可以尝试以下几个方法: 1. 检查磁盘空间:首先,你需要确认你的磁盘确实没有足够的空间。你可以使用命令"df -h"来查看磁盘的使用情况。 2. 清理磁盘空间:如果你发现磁盘空间确实不足,你可以尝试清理磁盘上的一些不必要的文件或者移动它们到其他磁盘上释放空间。你可以删除一些临文件、旧日志文件或者不再需要的大文件。 3. 扩展磁盘空间:如果清理磁盘空间后仍然无法解决问题,你可以考虑扩展磁盘空间。这可以通过添加新的磁盘、调整分区大小或者使用云存储等方法实现。 通过以上方法,你应该能够解决"ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device"的问题。记得在进行任何磁盘操作之前,备份重要的文件以防止数据丢失。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [CUDA11.2 安装pytorch报错:ERROR: Could not install packages due to an OSError: [Errno 2] No such ...](https://blog.csdn.net/m0_56909995/article/details/124050316)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *3* [anaconda安装pytorch报错PackagesNotFoundError: The following packages are not available from ...](https://download.csdn.net/download/weixin_38621870/13750818)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值