栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

Torch not compiled with CUDA enabled 解决办法

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Torch not compiled with CUDA enabled 解决办法

## 目标

解决Torch not compiled with CUDA enabled 版本不兼容问题

### 原理
Torch not compiled with CUDA enabled,即CUDA、torch的版本兼容问题是造成print(torch.cuda.is_available()) 返回false的一种原因。本文搜集从卸载CUDA、torch,选择兼容版本,再到使用清华源,最后安装CUDA、torch的博客集合,作为解决方法:
如何查看torch版本:https://blog.csdn.net/weixin_47414034/article/details/124632748
如何查看cuda版本:https://blog.csdn.net/weixin_38723958/article/details/123143521

卸载torch:https://blog.csdn.net/zaf0516/article/details/103927989
卸载CUDA:https://blog.csdn.net/Zinnir/article/details/122766367

安装 PyTorch 切换清华源镜像:https://blog.csdn.net/weixin_44589540/article/details/122847278
CUDA历史版本下载:https://developer.nvidia.com/cuda-toolkit-archive
PYTORCH历史版本下载:https://pytorch.org/get-started/previous-versions/
PYTORCH版本建议按照网页上的CUDA版本匹配下载对应的版本
conda 多环境切换:https://blog.csdn.net/yuehenmiss/article/details/102914941

感谢以上博文的作者

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/977725.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号