装cuda 但用pip/conda直接install预编译版本不就是脱了裤子放屁?
原视频标题有歧义
pip/conda装的时候会下载cuda的runtime和需要的库 不需要额外安装cuda
只需要确保显卡和系统支持cuda
正确安装nvidia显卡驱动
使用pip/conda安装gpu版pytorch即可
手动安装cuda除非你要源码编译pytorch
官网安装说明:
https://pytorch.org/get-started/locally/
社区讨论:https://discuss.pytorch.org/t/is-it-required-to-set-up-cuda-on-pc-before-installing-cuda-enabled-pytorch/60181
github issue:
https://github.com/pytorch/pytorch/issues/17445
为什么这么多人说要呢?
大佬们不止使用一个框架 有些框架现在或者当时需要安装 看到pytorch有gpu版本就搞混了
对于大佬们来说是需要的 但是只是兴趣使然使用pytorch跑点东西那就不需要
评论区有太多概念混乱的评论 看了不太好甄别 就此关闭了
大家还是以官方为准 有问题去社区和github issue提问