【学习笔记】pyQt5学习笔记(7)——RecursionError: maximum recursion depth exceeded错误

同样的程序,在Ubuntu系统下使用pyinstaller打包没有问题,在win10下打包提示:

RecursionError: maximum recursion depth exceeded

找到的解决方法在这里,在spec文件开头(除了第一行的注释)添加如下语句:

import sys
sys.setrecursionlimit(5000)

然后再使用

pyinstaller *.spec

即可完成打包。

你可能感兴趣的:(学习笔记)