pyinstaller执行后出现maximum recursion depth exceeded while calling a Python object

通过查阅,得知如下:

1.递归深度不够,我设置一下递归深度

# 在首文件头部
import
sys sys.setrecursionlimit(5000)

2.openpyxl的问题

# 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

猜你喜欢

转载自www.cnblogs.com/nahaohao/p/12623806.html