Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so

I am running a python script and I get this error:

Intel MKL FATAL ERROR: Cannot load libmkl_avx2.so or libmkl_def.so. 

Both files are present in the anaconda2/lib directory. How can I fix this error? Thanks.

like image 645
Chris Parry Avatar asked Apr 16 '16 02:04

Chris Parry


2 Answers

If you use conda, try with these two commands:

conda install nomkl numpy scipy scikit-learn numexpr conda remove mkl mkl-service 

It should fix your problem.

like image 128
Zaikun Xu Avatar answered Sep 21 '22 09:09

Zaikun Xu


I ran into this problem after installing anaconda3 (vesion 4.2.0). The fix for me was simple, and I was able to keep using mkl. Just update to the latest numpy version.

conda update numpy 
like image 25
Drew Swartz Avatar answered Sep 22 '22 09:09

Drew Swartz