通过查阅,得知如下:
# 在首文件头部import sys sys.setrecursionlimit(5000)
# openpyxl版本问题,在2.3.5可以正常打包 pip uninstall openpyxl pip install openpyxl==2.3.5
原文链接:https://stackoverflow.com/questions/38977929/pyinstaller-creating-exe-runtimeerror-maximum-recursion-depth-exceeded-while-ca