直接运行时候不报错,打包好了运行报错
ImportError:
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.Original error was: DLL load failed: Module not found.
解决办法是下载numpy-mkl版并安装
https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
本文解决了一个常见问题:在Python环境中,直接运行代码时没有错误,但在打包后运行时报出numpy导入错误。错误提示为DLL加载失败,模块未找到。解决方法是下载并安装numpy-mkl版本。
5691

被折叠的 条评论
为什么被折叠?



