使用ComfyUI时,遇到了缺少triton包的问题,当我试图安装时,显示没有wheels。

PS D:\llmProjects\ComfyUI> uv pip install triton
  × No solution found when resolving dependencies:
  ╰─▶ Because only the following versions of triton are available:
          triton==0.4.1
          triton==0.4.2
          triton==1.0.0
          triton==1.1.0
          triton==1.1.1
          triton==2.0.0
          triton==2.1.0
          triton==2.2.0
          triton==2.3.0
          triton==2.3.1
          triton==3.0.0
          triton==3.1.0
          triton==3.2.0
          triton==3.3.0
          triton==3.3.1
          triton==3.4.0
          triton==3.5.0
          triton==3.5.1
          triton==3.6.0
          triton==3.7.0
      and triton<=2.1.0 has no wheels with a matching Python ABI tag (e.g., cp312), we can conclude that
      triton<=2.1.0 cannot be used.
      And because triton>=2.2.0 has no wheels with a matching platform tag (e.g., win_amd64) and you require triton,
      we can conclude that your requirements are unsatisfiable.
      
      hint: You require CPython 3.12 (cp312), but we only found wheels for triton (v2.1.0) with the following
      Python ABI tags: cp37m, cp38, cp39, cp310, cp311, pypy37_pp73, pypy38_pp73, pypy39_pp73

      hint: Wheels are available for triton (v3.7.0) on the following platforms: manylinux_2_27_aarch64,
      manylinux_2_27_x86_64, manylinux_2_28_aarch64, manylinux_2_28_x86_64  

这里的原因在于,官方没有提供windows版本的triton,但是有一个社区版的triton-windows.
解决方法是安装这个社区版的triton-windows.

uv pip install "triton-windows<3.7"

uv是一个python项目管理工具,如果你没有用uv配置环境的化,可以去掉uv,直接使用下面的

pip install "triton-windows<3.7"
Logo

这里是“一人公司”的成长家园。我们提供从产品曝光、技术变现到法律财税的全栈内容,并连接云服务、办公空间等稀缺资源,助你专注创造,无忧运营。

更多推荐