https://github.com/yinghualuowu/Python_VLPR/releases
在网上随处可以见到PyInstaller的参数教程。
-F : 打包成单个可执行文件 -w : 打包之后运行程序,只有窗口不显示命令行 -c : 打包之后运行程序,显示命令行
结果用了 -F.导致外部用的配置文件无法读取。报错
Failed to execute script XXX
不得不用 -w查看到底哪里错了。
突然想起来一堆的数据还在外面挂着呢,立马把它们移动到和exe相同的文件夹。
原文:https://www.cnblogs.com/yinghualuowu/p/11155725.html