ImportError when importing torch

meet this error when import torch

ImportError:DLL load failed:操作系统无法运行%1

The interpretation of the Chinese sentence is briefly this:

The operation system cannot run.

Could you post the whole stack trace?
After searching for this error, it seems it might be thrown due to some bad installations of some packages.

Traceback (most recent call last):
File “”, line 1, in
File “D:\Anaconda3\lib\site-packages\torch_init_.py”, line 78, in
from torch._C import *
ImportError: DLL load failed: 操作系统无法运行 %1。

Thank you!

Hi, wugetable
Do you run this command in IDE or in CMD? It seems to related with the way you installed pytorch.

I think maybe you could find some useful advise from here.

Best wishes!