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

win10
pytorch 1.0

import torch
报错:
File “D:\Python\Python36\lib\site-packages\torch_init_.py”, line 78, in
from torch._C import *
ImportError: DLL load failed: 找不到指定的模块。

解决办法:
卸载重装(安装过程参考我之前写的安装过程https://blog.csdn.net/weixin_43685844/article/details/89199649)
pip uninstall torch
conda install pytorch torchvision

过程中关闭所有python相关应用
重启pycharm

搞定

发布了41 篇原创文章 · 获赞 14 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/weixin_43685844/article/details/91390398