pyinstaller打包时出现RecursionError: maximum recursion depth exceeded的报错
打包 报错 出现 maximum exceeded depth Pyinstaller recursion
2023-09-27 14:20:14 时间
问题:
有时候,我们执行pyinstaller -F xxx.py文件时,会遇到如下的错误提示:
RecursionError: maximum recursion depth exceeded
说明某个库文件递归调用次数过多,超过了Python的最大栈高度的限制。
解决方案如下:
在生成的xxx.spec文件头部增加如下两行:
import sys
sys.setrecursionlimit(5000)
然后执行
pyinstaller xxx.spec
即可打包成功。
相关文章
- webpack打包报错:Module not found: Error: Cannot resolve module ‘babel-loader‘
- Maven 如何打包 Spring Boot 项目
- java zip4j压缩打包zip
- vue配置webpack生产环境.env.production、测试环境.env.development(配置不同环境的打包访问地址)
- AndroidStudio离线打包MUI集成JPush极光推送并在java后端管理推送
- 打包JavaFX11桌面应用程序
- maven打包报错:Cannot find matching toolchain definitions for the following toolchain types
- Tomcat打包时多项目共享jar和精确指定jar版本
- jenkins打包ios 报错rror: No signing certificate "iOS Distribution" found: No "iOS Distribution...
- SpringBoot2.x入门:应用打包与启动
- electron-builder打包过程中报错——网络下载篇
- 小程序ci打包报错Error: [object Object] is not a PostCSS plugin
- idea打包报错
- vue 里使用 js-base64 然后打包出现报错?
- C# 将dll打包到程序中
- SpringBoot+Thyemleaf开发环境正常,打包jar发到服务器就报错Template might not exist or might not be accessible
- [Unity3d]打包Assetbundle并加载