pyorch 安装出现的问题之一
先建议查看其他博主的关于清华镜像源的问题 利用镜像源下载速度更快
清华源镜像
出现的问题(一)
当我输入了
conda install pytorch torchvision cudatoolkit=10.2
以后出现
WARNING
这是报错信息
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(140): Could not remove or rename D:\anaconda\pkgs\pytorch-1.5.0-py3.7_cuda102_cudnn7_0.tar.bz2. Please remove this file manually (you may need to reboot to free file handles)
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(140): Could not remove or rename D:\anaconda\pkgs\pytorch-1.5.0-py3.7_cuda102_cudnn7_0\Lib\site-packages\torch\lib\cudnn64_7.dll. Please remove this file manually (you may need to reboot to free file handles)
解决方法
后面查阅了资料 发现可能是未安装cudnn-7.6.5
然后输入了下面这个代码进行下载
conda install cudnn
安装好后 再进行
这步操作即可输入conda install pytorch torchvision cudatoolkit=10.2
;
令人舒服的界面