Hello fellow programmers, so I am having a spot of trouble getting this python .exe to function properly. I am using Anaconda 3 and the latest version of pyinstaller, and my code has nothing odd going on when I run it as a .py, but for the sake of distribution I need to have it as a ".exe". Whenever I try to run my .exe all I get is the error:
Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll.
and then it closes. Again, I am not having this problem if I run my python code in .py format from the same command window.
Any help would be greatly appreciated, thank you!
UPDATE: If you get Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll but you can clearly see that mkl_intel_thread.dll IS IN your program directory, go to numpy/core and literally copy all the files with .dll extensions that you don't have and paste them into your program's directory and re-run.
See Cannot load mkl_intel_thread.dll on python executable, my answer there and its comments. If this still does not solve your problem, try to manually copy other DLLs from the anaconda environment's library path into the app installation directory and its lib subdirectory.
Intel MKL FATAL ERROR: Cannot load libmkl_avx512.so or libmkl_def.so. It seems it is numpy issue but updating the library is not working.
This pip installation does not include mkl library. You can find the resolved issue In Pyinstaller official github. Ref: github.com/pyinstaller/pyinstaller/issues/2270 I had the same issue using Pyinstaller and Numpy. By default pyinstaller seems to not take into account numpy binaries so you have to specify it manually.
The error means that the program couldn't find mkl library files under its library path, which is what you need to make it find.
I had the issue when running matplotlib scripts on windows with numpy+mkl, and I got it fixed by copying files that start with "mkl_" in site-packages/numpy/core
to my python.exe root.
I'm not familiar with 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 figure out where the .exe tries to load libraries from(could be the same path where the executable is located), and copy all the mkl dll's of any package there. Or there could be something like "compile options" that allows you to configure the path etc.
Hope it helps you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With