pyninstaller 错误:忽略显式参数 '--'

问题描述 投票:0回答:1

我已经完成了一个简单的脚本来绘制箱线图,使用三个模块:numpy、os 作为路径和 matplotlib.pyplot。 当我从终端使用 pyinstaller 午餐时,我写下了这个命令:

(spyder_env) D:\Scipts_homemade>pyinstaller -F-- hiddenimport=numpy -F--hiddenimport=os -F--hiddenimport=matplotlib.pyplot -F--collect-submodules=numpy -F--collect-submodules=matplotlib.pyplot -F--onefile BOX_PLOT_interactive.py

输出为:

pyinstaller: error: argument -F/--onefile: ignored explicit argument '--''
where is my mistake?

谢谢你

对我的错误提供一些帮助,可能是由于命令不正确或模块丢失造成的

python pyinstaller command-prompt boxplot
1个回答
0
投票

-F
--onefile
是同一个东西。

这样做:

pyinstaller --hiddenimport=numpy --hiddenimport=os --hiddenimport=matplotlib.pyplot --collect-submodules=numpy --collect-submodules=matplotlib.pyplot --onefile BOX_PLOT_interactive.py
© www.soinside.com 2019 - 2024. All rights reserved.