我正在努力在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
试着将mkl依赖项复制到
build
目录本身,而不是build/lib
。你知道吗通过使用
build_exe
选项的include_files
列表,可以让cx\u Freeze包含必要的文件。你知道吗相关问题 更多 >
编程相关推荐