0
点赞
收藏
分享

微信扫一扫

pyinstaller打包运行报错failed to execute script ***

雷亚荣 2022-11-02 阅读 131

使用的参数是-w  -F

这是Google上的解释:
--hidden-import MODULENAME, --hiddenimport MODULENAME
Name an import not visible in the code of the
(s). This option can be used multiple times.
有--hiddle-import选项
解决方法:打包时加上 --hidden-import=queue
pyinstaller --hidden-import=queue -w -F $FileName$
我在使用的时候先写的-w -F 然后是--hiddle.......
但是却仍然报错,先写--hiddle......就没问题,现在仍没找到原因。

举报

相关推荐

Python打包Pyinstaller

pyinstaller打包pyside

0 条评论