Search code examples
pythonexecutableanacondapyinstaller

Pyinstaller Intel MKL fatal error when running .exe file Python 2.7


I have made a GUI application using wxpython and some other packages (matplotlib, pandas, numpy). I tried to compile this into a standalone executable. However, when I run the 'my_script.exe' I get the following error in my command prompt:

Intel MKL FATAL ERROR: Cannot load mkl_avx2.dll or mkl_def.dll.

The versions I am using are:

  • Anaconda 2.0.0 (Python 2.7) 64 bit
  • Setuptools 19.2 (downgraded from 20.3 because of import error)

Thanks in advance for helping me!


Solution

  • Search for mkl_avx2.dll & mkl_def.dll files and paste them in your .exe folder.