概述
from torch._C import * ImportError: DLL load failed解决方法
import torch会出现如下错误:
import torch
File "D:ProgramDataAnaconda3envspytorch-py36libsite-packagestorch__init__.py", line 79, in <module>
from torch._C import *
ImportError: DLL load failed: 找不到指定的程序。
网上解决方法众说纷纭,我的解决方法是:发现是Python版本问题:
https://github.com/pytorch/pytorch/issues/4518
This also worked for me.
Same for python 3.6: Using newest python 3.6.8 gives the same errorconda install python==3.6.7
works
解决方法:
conda install python==3.6.7
最后
以上就是留胡子手链为你收集整理的from torch._C import * ImportError: DLL load failed解决方法 from torch._C import * ImportError: DLL load failed解决方法的全部内容,希望文章能够帮你解决from torch._C import * ImportError: DLL load failed解决方法 from torch._C import * ImportError: DLL load failed解决方法所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复