windows下安装pytorch 之ImportError: DLL load failed: 找不到指定的模块问题解决

windows下安装pytorch,参考了该博客

https://blog.csdn.net/u012743859/article/details/78630344

import torch报错

解决方案如下:

pip uninstall torch
conda install -c peterjc123 vc
conda install -c peterjc123 pytorch-cpu

其他解决方案参考:https://github.com/pytorch/pytorch/issues/4518#issuecomment-384195186 

你可能感兴趣的:(windows下安装pytorch 之ImportError: DLL load failed: 找不到指定的模块问题解决)