python 编译EXE文件

以labelme测试

标注工具labelimg和labelme
矩形标注工具:labelimg

多边形标准工具:labelme

前者官网发布了可执行文件,后者只有python源码,如果需要编译windows exe,可以这样:

pip install labelme

然后运行labelme确保程序可以正常执行

下载源码:

cd  D:githubwkentarolabelme-3.16.7

pip install .

pip install pyinstaller

pyinstaller labelme.spec

python解决“failed to execute pyi_rth_pkgres”问题

参考:https://stackoverflow.com/questions/37815371/pyinstaller-failed-to-execute-script-pyi-rth-pkgres-and-missing-packages

先卸载pyinstaller然后在从GitHub上下载安装

pip uninstall pyinstaller
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip

博主通过以上方法解决了问题 
————————————————
版权声明:本文为CSDN博主「半途行走」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_41879093/article/details/104216881

原文地址:https://www.cnblogs.com/geoffreygao/p/13219713.html