在 windows 中,Kivy 应用程序未使用 pyinstaler 以单一文件格式转换
Kivy app not getting converted in a onefile format with pyinstaler in windows
好吧,我对 python 的 kivy 库还很陌生,因为我通常使用数据科学库。所以我尝试创建一个非常基本的计算器 kivy 应用程序。我想将它转换成 windows onefile exe。我按照文档进行操作,首先使用 pyinstaller 将其转换为 spec 文件。然后我添加了必要的库。然后我再次使用pyinstaller将其转换为exe。我清楚地同时使用了 --onefile
和 -w
但它没有在一个文件中转换,而是像通常那样在包含许多文件的 dist 文件夹中转换。我希望我已经提供了所有必要的信息来帮助我。任何形式的帮助将不胜感激。
看看documentation。请注意上面写着的部分:
Only the following command-line options have an effect when building
from a spec file:
--upx-dir=
--distpath=
--workpath=
--noconfirm
--ascii
--clean
请注意 --onefile
不在该列表中。如果要创建 onefile
,则应在创建 spec
文件时使用该选项。
好吧,我对 python 的 kivy 库还很陌生,因为我通常使用数据科学库。所以我尝试创建一个非常基本的计算器 kivy 应用程序。我想将它转换成 windows onefile exe。我按照文档进行操作,首先使用 pyinstaller 将其转换为 spec 文件。然后我添加了必要的库。然后我再次使用pyinstaller将其转换为exe。我清楚地同时使用了 --onefile
和 -w
但它没有在一个文件中转换,而是像通常那样在包含许多文件的 dist 文件夹中转换。我希望我已经提供了所有必要的信息来帮助我。任何形式的帮助将不胜感激。
看看documentation。请注意上面写着的部分:
Only the following command-line options have an effect when building from a spec file:
--upx-dir=
--distpath=
--workpath=
--noconfirm
--ascii
--clean
请注意 --onefile
不在该列表中。如果要创建 onefile
,则应在创建 spec
文件时使用该选项。