1 添加路径
2 运行下面的代码生成 file.spec
pyinstaller -F file.py
3 在filename.spec 文件头添加下面语
import sys
sys.setrecursionlimit(5000)
4 在你打包的命令行中先输入chcp 65001
然后再输入打包命令。
# pyinstaller -F xxx.py
pyinstaller xxx.spec
pyinstaller -F file.py
import sys
sys.setrecursionlimit(5000)
chcp 65001
然后再输入打包命令。
# pyinstaller -F xxx.py
pyinstaller xxx.spec