之前编译的时候
pyinstallerQ -F test.py
编译程序提示缺少PIL. tkinter finder
后来的办法是
在编译pyinstaller -F test.py生成的test.spec中加入缺少的库即原来的文件test.spec中
hiddenimports=
现在改为:
hiddenimports=['tkinter','PIL,PIL. kinter finder]然后对test.spec编译
pyinstaller test.spec
尝试以上方法不行
发现是之前的dist文件没有删除导致
所以每次打包都要使用新的dist
2773

被折叠的 条评论
为什么被折叠?



