cx_Freeze无法找到mkl:MKL严重错误:无法加载mkl_intel_thread.dll [英] cx_Freeze unable fo find mkl: MKL FATAL ERROR: Cannot load mkl_intel_thread.dll
问题描述
我正在努力尝试在Windows 10上生成python可执行文件。我已经尝试过无法在python可执行文件上加载mkl_intel_thread.dll 和许多变体,但仍然会收到错误。
我的 setup.py
:
来自cx_Freeze导入设置,可执行
Additional_mods = [ numpy, pandas, spacy]
#自动检测到依赖项,但可能需要
#进行微调。
#buildOptions = dict(packages = [],excludes = [],includes = additional_mods)
buildOptions = dict(packages = additional_mods,excludes = [])
base = 控制台
可执行文件= [Executable( app.py,base = base)]
setup(
name = bpo ,
version = 1.0,
description =,
options = dict(build_exe = buildOptions),
可执行文件=可执行文件,
)
会发生什么?已安装 mkl
,并且已将其内容复制到 lib
路径中,作为建议的答案。
我还尝试将所有这些变量设置为1,如 Anaconda文档的故障排除部分,没有运气:
CONDA_DLL_SEARCH_MODIFICATION_ENABLE
CONDA_DLL_SEARCH_MODIFICATION_DEBUG
CONDA_DLL_SEARCH_MODIFICATION_NEVER_ADD_WINDOWS_DIRECTORY
CONDA_DLL_SEARCH_MODIFICATION_N $$$
$ b $ c $ b $ c $ b $ c $ b $ c
$ c $ b h2_lin>解决方案
尝试将mkl_ *依赖项复制到 build
目录本身而不是 build / lib
。
您可以使用<$ c $的 include_files
列表,让cx_Freeze包含必要的文件。 c> build_exe 选项。
I am struggling trying to generate a python executable on Windows 10. I have already tried the solution proposed in Cannot load mkl_intel_thread.dll on python executable and many variations, but still getting the error.
My 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,
)
What could be happening? mkl
is installed and I have copied its content to the lib
path as the answer proposed.
I have also tried to set all these variables to 1, as specified in Troubleshooting section of the anaconda docs without luck:
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
Try to copy the mkl_* dependencies to the build
directory itself instead of the build/lib
.
You can let cx_Freeze include the necessary file(s) by using the include_files
list of the build_exe
options.
这篇关于cx_Freeze无法找到mkl:MKL严重错误:无法加载mkl_intel_thread.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!