Cuda 10.2 and pytorch 1.5 -- OSError: [WinError 126] The specified module could not be found

Getting below issue when after installing cuda 10.2 and installing pytorch 1.5 ‘conda install pytorch torchvision cudatoolkit=10.2 -c pytorch’ . Any ideas how to fix this issue?

OSError Traceback (most recent call last)
----> 1 import torch

~\Documents\Anaconda3\lib\site-packages\ in
79 dlls = glob.glob(os.path.join(th_dll_path, ‘*.dll’))
80 for dll in dlls:
—> 81 ctypes.CDLL(dll)

~\Documents\Anaconda3\lib\ in init(self, name, mode, handle, use_errno, use_last_error)
363 if handle is None:
–> 364 self._handle = _dlopen(self._name, mode)
365 else:
366 self._handle = handle

OSError: [WinError 126] The specified module could not be found

you could solve it, I have the same problem???

I back from version 1.5 to 1.4 and this command
conda install pytorch==1.4.0 torchvision==0.5.0 -c pytorch**

1 Like

what about cuda version 10.2?
is this what you used
conda install pytorch=1.4.0 torchvision=0.5.0 cudatoolkit=10.2 -c pytorch ?

Any help is greatly appreciated?

its ok. I have use this

Please take a look here. Cannot import torch on jupyter notebook

1 Like

This worked great! Thankyou so much for posting solution

1 Like