Importing torch in Python3.7. OSError

Hi,

We have built the torch and torchvision from scratch using CUDA10.2, and have GT730 GPU. When we are installing the torch and torchvision wheels in new system we are getting “OSERROR: libmkl_intel_lp64.so: cannot open shared object file: no such file or directory” error.

We used Ubuntu 18.04 for building torch and torchvision and our new system is also having ubuntu 18.04.

We tried to install mkl and also updated few packages/libraries but the error is still there. Can anyone please let us know how to resolve this error.

Thanks,
Sreekanth

1 Like

Usually pip install mkl (and adding the lib path to your LD_LIBRARY_PATH if needed) should work.
If not, check which library is missing libmkl via ldd and check if libmkl.

Hi,

We installed mkl but still we are getting the same error. When we installed the Anaconda and installed the CUDNN the issue got resolved.

Not sure why we need to install the Anaconda and CUDNN.

Thanks,
Sreekanth