在PyInstaller最大递归深度时提出了适当的提及,我删除了所有版本的Pyinstaller和相关文件夹。我安装了Pyinstaller的最新开发版本:
pip install https://github.com/pyinstaller/pyinstaller/tarball/develop
使用Pyinstaller仍然导致此错误消息:
RecursionError: maximum recursion depth exceeded.
我正在使用Python 3.6.4。我已经看到其他人降级为Python 3.5。其他人建议增加规格文件中的递归深度(http://pyinstaller.readthedocs.io/en/stable/spec-files.html(。
任何人都可以提出最佳前进的道路吗?
fwiw,我撕掉了python 3.6.4并安装了python 3.5.2。现在,Pyinstaller和P3.5.2一起表现良好。
另外,您可以通过将以下内容添加到.spec文件的开头来增加递归限制:
import sys
sys.setrecursionlimit(5000)