Pytorch_GPU版环境配置指南

@Pytorch_GPU版环境配置经历

您好!这是我第一次配置pytorch-GPU版时记下的一些解决方法和视频集合,感谢以下所有引用到一些文章和网址视频资料。

一.首先安利一本网页版的pytorch的深度学习书籍

来自python技术分享平台,欢迎大家加入。网址如下:
http://www.feiguyunai.com/index.php/2019/09/11/pytorch-char02/#222_GPUPytorch
书中第2章正好是安装pytorch-GPU版简易教程。

二.再安利两个很好很好的帮助视频

来自b战的知名阿婆主,欢迎大家前往关注一键三连。
在这里插入图片描述
在这里插入图片描述

三.要配置NVIDIA显卡的CUDA和cudnn,各种版本之间的依赖关系以及与其他使用GPU的库版本兼容关系

这里引用了大佬的文章,
https://www.cnblogs.com/bile/p/12502739.html

四.其次是Pytorch,NVIDIA显卡,CUDA和cudnn的下载地址

NVIDIA : https://www.nvidia.cn/Download/index.aspx?lang=cn
CUDA : https://developer.nvidia.com/cuda-toolkit-archive
CUDNN: https://developer.nvidia.com/rdp/cudnn-archive
Pytorch : https://pytorch.org/

五.若windows上报错:Could not find a version that satisfies the requirement torch==x.x.x

最后关于错误的解决方式:
pip install torch1.7.1 -f https://download.pytorch.org/whl/torch_stable.html
上面版本torch
x.x.x 安装自己需要的版本即可。
引用来自:https://blog.csdn.net/weixin_41010198/article/details/103107083

你可能感兴趣的:(pytorch安装,pytorch)