OSError: [WinError 127] The specified program could not be found

%matplotlib inline
import os
import torch
import torchvision


OSError Traceback (most recent call last)
in
1 get_ipython().run_line_magic(‘matplotlib’, ‘inline’)
2 import os
----> 3 import torch
4 import torchvision

D:\Anaconda3\lib\site-packages\torch_init_.py in
122 err = ctypes.WinError(last_error)
123 err.strerror += f’ Error loading “{dll}” or one of its dependencies.’
→ 124 raise err
125 elif res is not None:
126 is_loaded = True

OSError: [WinError 127] Error loading “D:\Anaconda3\lib\site-packages\torch\lib\c10_cuda.dll” or one of its dependencies.

Have you resolved this? I’m getting the same error.

If you are using torch Cuda 11.8, put cudart64_110 from cuda toolkit 11.4 inside torch/lib folder.