comfyui 安装sageattention 编译失败报错 code 1120 PyInit__qattn_sm80

错误原文如下:

LINK : error LNK2001: 无法解析的外部符号 PyInit__qattn_sm80

build\temp.win-amd64-cpython-312\Release\sageattention._qattn_sm80\csrc\qattn\_qattn_sm80.cp312-win_amd64.lib : fatal error LNK1120: 1 个无法解析的外部命令

error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.39.33519\\bin\\HostX86\\x64\\link.exe' failed with exit code 1120

错误图片

环境:

comfyui 0.4.0

python 3.12.12

cuda 12.8

pytorch 2.7.0+cu128

trion 3.3.0

sageattention 2.2.0


仅给同样错误的哥们一个参考...issue里面哥们说的我试了没用

https://github.com/thu-ml/SageAttention/issues/233e

我环境出问题的原因:

编译的时候进了搜狗输入法...记得切换下输入法到微软原生的

(居然和unreal一样会进错字符集...........)

相关推荐
Mr数据杨1 天前
【ComfyUI】Qwen Edit 写真常用8镜头角度图像一致性生成
comfyui
Mr数据杨2 天前
【ComfyUI】Qwen Edit 文字描述多图合成
comfyui
Mr数据杨2 天前
【ComfyUI】Wan2.2 SmoothMix 文生视频自动扩写
comfyui
Mr数据杨3 天前
【ComfyUI】Qwen Wan2.2 写真4角度运镜视频生成
comfyui
Mr数据杨4 天前
【ComfyUI】Qwen 固定人物IP多场景生成写真生成
comfyui
Mr数据杨6 天前
【ComfyUI】Qwen Edit 同人同景同服装一致性模特套图
comfyui
聚梦小课堂7 天前
【Docker实战】n8n容器如何访问宿主机ComfyUI?详解 host.docker.internal 与网络配置
docker·网络配置·comfyui·n8n·自动化工作流
Mr数据杨8 天前
【ComfyUI】Flux Kontext 身形调优与体态增强
comfyui
paopao_wu8 天前
ComfyUI遇上Z-Image(3):文生图/图生图
人工智能·ai·文生图·图生图·comfyui·z-image·we