Windows安装pytorch时‘系统找不到指定的文件’

问题遇到的现象和发生背景

Windows在通过conda安装pytorch时出现问题
我是笔记本,显卡是gtx1650,我先更新了nvidia的版本,下载了cuda11.6和cudaa,按教程装好之后也配置了环境变量,最后在装pytorch(cuda11.6版本)的时候报错

问题相关代码,请勿粘贴截图

Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: / "By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html%22

failed
ERROR conda.core.link:_execute(502): An error occurred while installing package 'conda-forge::certifi-2022.6.15-pyhd8ed1ab_1'.
FileNotFoundError(2, '系统找不到指定的文件。', None, 2, None)
Attempting to roll back.

Rolling back transaction: done

FileNotFoundError(2, '系统找不到指定的文件。', None, 2, None)

运行结果及报错内容

如上,显示安装包是出错,系统找不到指定的文件

我的解答思路和尝试过的方法

找了很多帖子发现好像没有我这个情况

通过pip下载

试一试这个办法:pip 代替conda下载包

刚好前一段时间写了个博客,直接照着配吧,亲测可用
https://blog.csdn.net/weixin_43662553/article/details/126052891

pip install torch

是使用这个命令安装的吗

img

pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu116

更多参考官网: https://pytorch.org/get-started/locally/