关于
pyinstaller
知识汇总参见《Python中pyinstaller如何打包生成exe文件及可能问题汇总》
-
问题描述
如题所述:
-
解决方案1
采用
pyinstaller -F target.py
生成exe
过程中,会生成一个target.spec
文件,在此文件第二行加上如下两句:import sys sys.setrecursionlimit(5000) # 设置递归深度
然后运行此文件:
pyinstaller target.spec
因为
Python
的默认递归深度是1000,超过即会报错。 -
Refereneces