Problem importing Torch

While executing import torch statement i get the following error

OSError Traceback (most recent call last)
in
----> 1 import torch
2 #assert ‘.’.join(torch.version.split(’.’)[:2]) == ‘1.4’
3 print(torch.version)
4 import torch.nn as nn
5 import torch.optim as optim

~.conda\envs\DeepLearning\lib\site-packages\torch_init_.py in
79 dlls = glob.glob(os.path.join(th_dll_path, ‘*.dll’))
80 for dll in dlls:
—> 81 ctypes.CDLL(dll)
82
83

~.conda\envs\DeepLearning\lib\ctypes_init_.py in init(self, name, mode, handle, use_errno, use_last_error)
362
363 if handle is None:
–> 364 self._handle = _dlopen(self._name, mode)
365 else:
366 self._handle = handle

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

Is there any solution to this ?

1 Like