pyinstaller fapiao.py时出现如下问题:
============================================================= A RecursionError (maximum recursion depth exceeded) occurred. For working around please follow these instructions
- In your program's .spec file add this line near the top:: import sys ; sys.setrecursionlimit(sys.getrecursionlimit() * 5)
- Build your program by running PyInstaller with the .spec file as argument:: pyinstaller myprog.spec
- If this fails, you most probably hit an endless recursion in PyInstaller. Please try to track this down has far as possible, create a minimal example so we can reproduce and open an issue at github.com/pyinstaller… following the instructions in the issue template. Many thanks.
- 解决:打开fapiao.spec文件,添加下面两行
import sys sys.setrecursionlimit(sys.getrecursionlimit()*5)
然后pyinstaller fapiao.spec