最近在用 pyinstaller 打包项目的时候遇到如下错误:

RecursionError: maximum recursion depth exceeded 解决方案

  • 执行 pyinstaller,会生成 filename.spec 文件:
pyinstaller -F filename.py
  • filename.spec 文件头添加下面语句
import sys
sys.setrecursionlimit(5000)
  • 再次执行 pyinstaller.spec文件
pyinstaller filename.spec

以上方式解决了我的问题,很适用。


作者:Ju_Sang
来源:CSDN
原文:https://blog.csdn.net/jusang486/article/details/82383256
版权声明:本文为博主原创文章,转载请附上博文链接!

Pyinstaller 打包出现 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xce in position 解决方案

在你打包的命令行中先输入

chcp 65001 

然后再输入打包命令:

pyinstaller -F xxx.py

相关文章:

  • 2022-12-23
  • 2021-11-14
  • 2022-02-09
  • 2021-09-01
  • 2021-11-20
  • 2021-10-06
  • 2021-06-27
  • 2021-10-29
猜你喜欢
  • 2021-07-28
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
相关资源
相似解决方案