首页 > 其他分享 >pyinstaller打包运行报错failed to execute script ***

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

时间:2022-11-02 17:03:31浏览次数:64  
标签:execute MODULENAME pyinstaller -- hiddle 报错 import hidden

使用的参数是-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......就没问题,现在仍没找到原因。

标签:execute,MODULENAME,pyinstaller,--,hiddle,报错,import,hidden
From: https://blog.51cto.com/u_15858333/5817794

相关文章