把kivy程序打包成windows应用

1433

安装PyInstaller 用于打包

pip install --upgrade pyinstaller

打包命令:

python -m PyInstaller –name touchtracer examples-path\demo\touchtracer\main.py

如果要添加个图标的话,家个–icon参数

python -m PyInstaller –name touchtracer –icon examples-path\demo\touchtracer\icon.ico examples-path\demo\touchtracer\main.py

更多的参数选项见PyInstaller手册

权限不够

实际操作时提示 IOError: [Errno 13] Permission denied

 

留下一个答复

Please enter your comment!
Please enter your name here