我是靠谱客的博主 留胡子手链,这篇文章主要介绍from torch._C import * ImportError: DLL load failed解决方法 from torch._C import * ImportError: DLL load failed解决方法,现在分享给大家,希望可以做个参考。
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内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复