from torchvision import _C ImportError: DLL load faild

When I import torchvision, it returns an error as follows.

...
from torchvision import _C
ImportError: DLL load faild.

 

My environment is Win10 + python3.6 + PyTorch1.2 + torchvision0.3. Because I need PyTorch1.2, so I reinstall a lower vision of torchvision.

pip uninstall torchvision
pip install torchvision==0.2.2

 

And then, import torchvision returns no error.

 

reference:

https://blog.csdn.net/weixin_36757190/article/details/100006182

https://github.com/pytorch/pytorch/issues/23585

你可能感兴趣的:(pytorch1.2,torchvision,_C)