Python生成的exe本机运行正常,换个机器运行报错,import multiarray numpy failed
原一平 2018-10-11 10:38:52 用python写的程序,在spyder上运行正常。正常生成exe后,exe在自己的电脑上运行正常。
现在有如下问题
1.把该exe拷贝到公司电脑上运行报错。
2.之前在公司电脑上生成并能正常使用的exe文件,现在运行也报错。
两个电脑上用spyder运行程序都能正常运行。
两个程序都是第一行 import numpy,运行exe报错如下,报错内容相同
提示
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: 找不到指定的程序。
请大侠指点。