Ask questionsfrom torch._C import * (ImportError: DLL load failed: The specified module could not be found.

File "<ipython-input-2-a4038b0d61ea>", line 4, in <module> import torch

File "C:\Users\hp i3\Anaconda3\lib\site-packages\", line 76, in <module> from torch._C import *

ImportError: DLL load failed: The specified module could not be found.


Answer questions djdookie

After switching to pytorch 1.0.1 with cuda 10 and python 3.7 (Windows 10 & Anaconda 1.9.6 virtual env) I also get this error:

from torch._C import *
ImportError: DLL load failed

same for fresh virtualenv with python 3.6

In C:\Users\Name.conda\envs\python37\Lib\site-packages\torch there is only a file named _C.cp37-win_amd64.pyd

With cuda 9.0 everything was running fine.

Also, same problem with only "conda install pytorch-cpu torchvision-cpu -c pytorch". So it's not cuda- or cudnn-related i guess.

Btw I tried all this stuff: It didn't work for me. And I can't use an old peterjc123/win-64::pytorch-cpu-0.3.1-py36_cpuhe774522_2 version. I need pytorch 1.0.1 with cuda support.


Related questions

TensorBoard logging requires TensorBoard with Python summary writer installed. This should be available in 1.14 or above hot 3
AttributeError: module 'torch.jit' has no attribute 'unused' hot 3
Script freezes with no output when using DistributedDataParallel hot 2
Adding Pixel Unshuffle hot 2
DataLoader leaking Semaphores. hot 2
[feature request] Add matrix exponential hot 2
cublas runtime error on torch.bmm() with CUDA10 and RTX2080Ti hot 2
libtorch does not initialize OpenMP/MKL by default hot 2
Use torch.device() with torch.load(..., map_location=torch.device()) hot 2
Cuda required when loading a TorchScript with map_location='cpu' hot 2
PyTorch 1.5 failed to import c:miniconda3-x64envs estlibsite-packages orchlibcaffe2_nvrtc.dll - pytorch hot 2
Error during import torch, NameError: name &#39;_C&#39; is not defined - pytorch hot 2
Quantisation of object detection models. hot 2
Problems with install python from source hot 2
torch.utils.tensorboard.SummaryWriter.add_graph do not support non-tensor inputs - pytorch hot 2
Github User Rank List