Pyinstaller numpy “Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll”

前端 未结 7 1534
后悔当初
后悔当初 2020-12-08 17:23

I\'m new with python apps. I\'m trying to build my python GUI app with pyinstaller. My app depends on the following packages: PyQt4, numpy, pyqtgraph, h5py. I\'m working wit

相关标签:
7条回答
  • 2020-12-08 17:58

    I updated the snippet to get it working with my anaconda installation (the path is different):

    from PyInstaller import log as logging
    from PyInstaller import compat
    from os import listdir
    from os.path import join
    
    mkldir = join(compat.base_prefix, "Library", "bin")
    binaries = [(join(mkldir, mkl), '') for mkl in listdir(mkldir) if mkl.startswith('mkl_')]
    

    Update: This is just working for windows. I also saw that there is a PR on github with a more accurate fix. See this Commit

    0 讨论(0)
提交回复
热议问题