pyinstaller打包之后"fail to execute script"?
看到各种教,或用–debug,或查看build文件夹中的warn.txt。或说要删除重装pyinstaller,或曰与pyinstaller版本有关……
发现都没用。后来还是在gitpyinstaller的英文网站上(https://pyinstaller.readthedocs.io/en/stable/when-things-go-wrong.html)查看了一下,解决了:
其实就是因为在运行pyinstaller时不该画蛇添足加上-w
去掉-w,
试试重新运行pyinstaller打包,不要加-w !!!
加不加-F,好像没关系。
我用的是pyinstaller3.6