pyinstaller 打包.py生成exe报错RecursionError: maximum recursion depth exceeded in comparison
报错:超过最大迭代次数
解决:在生成的.spec文件的第二行加入:
import sys
sys.setrecursionlimit(100000)
然后直接打包.spec文件
pyinstaller xxx.spec
接下来如果有报错:UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xce in position 109: invalid continuation byte
则在命令行输入
chcp 65001
然后继续打包
pyinstaller xxx.spec
即可