py2exe: MKL FATAL ERROR: Cannot load mkl_intel_thread.dll

99封情书 提交于 2019-12-01 05:49:53

问题


I'm trying to compile a python program in py2exe. It is returning a bunch of missing modules, and when I run the executable, it says: "MKL FATAL ERROR: Cannot load mkl_intel_thread.dll"

All my 'non-plotting' scripts work perfectly, just scripts utilizing 'matplotlib', and 'pyqtgraph' don't work.

I've even found the file in Numpy/Core/mkl_intel_thread.dll, and placed it into the folder with the .exe, and it still doesn't work. Does anyone have any idea how this can be solved?

I'm using Anaconda Python 3.4, and matplotlib 1.5.1


回答1:


Never mind! I managed to solve it, by copying the required dll from inside numpy/core, into the dist folder that py2exe creates, not outside of it.




回答2:


EDIT: The best way to fix this is to use the nomkl option with conda:

conda install nomkl numpy scipy scikit-learn numexpr

MY PREVIOUS ANSWER: I had this same issue on MAC OSX using pyqtgraph with py2app. I had to put the libmkl_avx2.dylib and libmkl_mc.dylib in the application package. Specifically, I had to right-click on the app and "Show Package Contents". I put the files in the folder MYAPPLICATION.app/Contents/Frameworks/



来源:https://stackoverflow.com/questions/34985134/py2exe-mkl-fatal-error-cannot-load-mkl-intel-thread-dll

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!