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:\ProgramData\Anaconda3\envs\pytorch-py36\lib\site-packages\torch\__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 error
conda install python==3.6.7?works
解決方法:
conda install python==3.6.7
總結
以上是生活随笔為你收集整理的from torch._C import * ImportError: DLL load failed解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux Ubuntu使用技巧
- 下一篇: Pytorch自定义Dataset和Da