【发布时间】:2018-09-06 15:57:10
【问题描述】:
我写了一个带有PyQt5+Python3.6接口的工具,我想打包成一个.exe文件在没有Python环境的机器上运行。根据网上使用pyinstaller打包,打包结束后dist文件夹中的exe文件打开后报错:
ModuleNotFoundError: 没有名为“scipy._lib.messagestream”的模块
这个问题是在.spec文件的hiddenimports解决后修改的:
hiddenimports=['scipy._lib.messagestream']
然后是命令生成的新的.exe文件:
pyinstaller x.spec
还是报错。
ModuleNotFoundError: 没有名为“typedefs”的模块
然后,继续添加……继续报错,这一切都报错……
你如何解决这个问题?
【问题讨论】:
-
欢迎来到 StackOverflow!请阅读有关how to ask a good question 和how to give a reproducible example 的信息。这将使其他人更容易帮助您。
标签: python pyinstaller