Python Pyinstaller 3.1 Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll file

Hi fellow programmers, so I have a problem with the fact that this python.exe is working correctly. I use Anaconda 3 and the latest version of pyinstaller, and my code has nothing strange when I run it as .py, but for distribution I need to have it as ".exe". Whenever I try to run my .exe, I get an error:

Intel MKL FATAL Error: Unable to load mkl_intel_thread.dll file.

and then it closes. Again, I don't have this problem if I ran my python code in .py format from the same command window.

Any help would be greatly appreciated, thanks!

+6
source share
1 answer

The error means that the program could not find the mkl library files on its way to the library, what you need to find it.

I had a problem running matplotlib scripts on windows with numpy + mkl, and I fixed them by copying files starting with "mkl_" to site-packages/numpy/core to my python.exe root.

I am not familiar with the compiled python program, but the idea should be the same. Since you had this error, I assume you are using mkl version packages. You need to find out where the .exe is trying to load the libraries from (maybe the same path where the executable is), and copy the entire mkl dll of any package. Or maybe something like “compilation options” that allows you to customize the path, etc.

Hope this helps you.

+2
source

Source: https://habr.com/ru/post/1241781/


All Articles