stablediffusion 手动安装时 RuntimeError: CUDA error: no kernel image is available for execution on the de

📅 2026/8/6 18:43:15
stablediffusion 手动安装时 RuntimeError: CUDA error: no kernel image is available for execution on the de
Stable_diffusion需要CUDAAnacondn并安装pytorch。自由安装CUDA【保姆级教程—从卸载到安装指定版本】_cuda官网-CSDN博客https://blog.csdn.net/m0_63324772/article/details/142864078?utm_mediumdistribute.pc_relevant.none-task-blog-2~default~baidujs_baidulandingword~default-0-142864078-blog-108050167.235^v43^pc_blog_bottom_relevance_base5spm1001.2101.3001.4242.1utm_relevant_index3注意安装pytorch时不要选择cuda13.0版本编译时只支持到计算能力sm_90不支持我的5060显卡。pytorch的详细安装教程_pytorch安装-CSDN博客https://blog.csdn.net/kaiaaaa/article/details/149224474安装完成后运行一个简短的 Python 脚本来确认问题是否解决import torchprint(fPyTorch版本: {torch.__version__}) # 应显示nightly版本号print(fCUDA可用: {torch.cuda.is_available()}) # 必须为 Trueif torch.cuda.is_available():print(f显卡: {torch.cuda.get_device_name(0)})print(f支持的计算能力: {torch.cuda.get_device_capability(0)}) # 现在应显示 (12, 0)关闭所有终端重新以管理员身份运行webui-user.bat。这次模型能正常加载了。