pyinstaller打包exe出錯處理

參考這個鏈接使用pyinstall的時候出錯https://zhuanlan.zhihu.com/p/87211459
錯誤1:Error running the exe file in Windows “Failed to execute script pyi_rth_pkgres”

解決方式: https://github.com/pyinstaller/pyinstaller/issues/2137

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

錯誤2:OSError: [WinError 193] %1 不是有效的 Win32 應用程序。

解決方式:去掉-r選項

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章