Unhandled exception in script
……
ImportError: Error importing numpy: you should not try to import numpy fromits source directory; please exit the numpy source tree, and relaunchyour python interpreter from there.
用pyinstaller打包的exe程序执行时出现上述报错,百度半天,查到的各种说法玄乎其玄,最后忘了哪里看到一句更新一下pyinstaller试试(pip install --upgrade pyinstaller)。
好了,问题就这么解决了。
PyInstaller打包exe遇到ImportError:解决方法
文章讲述了在使用PyInstaller打包exe程序时遇到ImportError:不应该从numpy源目录导入的问题。作者发现通过更新PyInstaller(pipinstall--upgradepyinstaller)解决了这个问题。
868

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



