RuntimeError: maximum recursion depth exceeded 递归深度报错

出现问题如图:
在这里插入图片描述
在所在目录下找到xxx.spec文件,用记事本打开,在顶端加两行如下:

import sys
sys.setrecursionlimit(10000)#(若还报错改成100000)

然后pyinstaller xxx.spec打包成功

猜你喜欢

转载自blog.csdn.net/lixiaoyu101/article/details/84621330