cx\u Freeze-fo-find mkl:mkl致命错误:无法加载mkl\u intel\u thread.d

2024-06-26 13:45:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在努力在windows10上生成python可执行文件。我已经尝试了Cannot load mkl_intel_thread.dll on python executable中提出的解决方案和许多变体,但仍然得到了错误。你知道吗

我的setup.py

from cx_Freeze import setup, Executable

additional_mods = ["numpy", "pandas", "spacy"]
# Dependencies are automatically detected, but it might need
# fine tuning.
# buildOptions = dict(packages=[], excludes=[], includes=additional_mods)
buildOptions = dict(packages=additional_mods, excludes=[])

base = "Console"

executables = [Executable("app.py", base=base)]


setup(
    name="bpo",
    version="1.0",
    description="",
    options=dict(build_exe=buildOptions),
    executables=executables,
)

会发生什么?mkl已安装,我已将其内容复制到建议的lib路径。你知道吗

我还尝试将所有这些变量设置为1,如anaconda docs的Troubleshooting section中所述:

    CONDA_DLL_SEARCH_MODIFICATION_ENABLE
    CONDA_DLL_SEARCH_MODIFICATION_DEBUG
    CONDA_DLL_SEARCH_MODIFICATION_NEVER_ADD_WINDOWS_DIRECTORY
    CONDA_DLL_SEARCH_MODIFICATION_NEVER_ADD_CWD

Tags: pymodssearchbasepackagessetupcondadict