【下载地址】
https://www.lanzoub.com/b00rn0g47e
密码:9hww
【项目背景】
2020年我用Tkinter写过一个QQ群聊天记录分析的工具exe,后续也写过一个纯JS前端的版本,前阵子有个用户反馈不能用了,顺便看能不能加入一个分析关键词的功能,于是趁着五一放假,把之前的代码集成在web页面,然后打包成exe,本着用户聊天属于用户自己的原则,概不上传数据至任意服务器。
【打包过程】
步骤:
-
安装 cx_Freeze:
pip install cx-Freeze
-
创建一个 ++setup.py++ 文件,包含以下内容:
from cx_Freeze import setup, Executable
setup(
name="FlaskApp",
version="1.0",
description="My Flask web application",
executables=[Executable("manage.py")],
) -
运行
python setup.py build
来构建可执行文件。 -
在
build/exe.win32-3.8
文件夹中查找manage.exe
可执行文件(对于 Windows)。对于其他平台,文件夹名称和可执行文件名可能有所不同。
软件打包后文件如下:

【运行界面】




