我必须归档在文件夹中1.main.py2.calculator.kv
我尝试使用pyinstaller main.py在命令提示符中打包在此过程中我没有收到任何错误,但是当我尝试打开EXE文件时,我没有得到所需的窗口。
请确保您已按照here中的步骤进行操作。您没有提及确切的spec
文件以及收到的错误。但是我想您在spec
文件中缺少此重要部分:
from kivy_deps import sdl2, glew
coll = COLLECT(exe, Tree('examples-path\\demo\\touchtracer\\'),
a.binaries,
a.zipfiles,
a.datas,
*[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
strip=False,
upx=True,
name='touchtracer')