用户工具

站点工具


pyinstaller

Pyinstaller打包提示超过最大递归深度问题

RecursionError: maximum recursion depth exceeded

解决方案

  1. 执行pyinstaller -F filename.py,生成filename.spec文件
  2. 在filename.spec文件头添加:
  import sys
  sys.setrecursionlimit(5000)
- 再次执行''pyinstaller filename.spec''

pyinstaller.txt · 最后更改: 2021/05/30 10:11 由 admin