python打包工具报错_python打包生成exe报错
如圖所示 如果出現的是這個問題可以可以考慮以下方法
首先卸載原先下載的 Pyinstaller
pip uninstall pyinstaller
再執行以下代碼,去github上下載
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
注釋:再次打包,請將之前生成的文件刪除
如:,build/,dist/,及main.spec 等
參考:
https://blog.csdn.net/weixin_41879093/article/details/104216881
https://www.lizenghai.com/archives/105701.html
http://www.mustenaka.cn/index.php/2020/04/01/failed-to-execute-script-pyi_rth_pkgres/
(起飛)
如果確實下載很慢:
鏈接: https://pan.baidu.com/s/1HKYHMk7BMpWViKLGiyiIhA 提取碼: xrt4
去 pycharm 看解釋器位置
放到 script下 直接在目錄啟動cmd
pip install pyinstaller-develop.zip (應該是這樣 不行 自己 加加油 要不還是用那個鏈接吧)
總結
以上是生活随笔為你收集整理的python打包工具报错_python打包生成exe报错的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 手机内存卡转化linux,Android
- 下一篇: 创建数据库常用SQL语句