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