cx_freeze

来自百合仙子's Wiki
跳转到导航 跳转到搜索

用法

打包 script.py ,文件在当前目录的 dist 文件夹下:

cxfreeze script.py

也可以使用 cxfreeze-quickstart 命令来快速建立一个 setup.py 脚本。

注意事项

如果出现以下错误

DLL load failed: The specified module could not be found.
DLL load failed: 找不到指定的模块

是因为相关模块所依赖的 DLL 没有被包含进来。可使用Dependency Walker (depends.exe)来分析相关模块的依赖。

另外,在 options 中使用 include_msvcr=True 来包含 msvcp100.dllMSVCR100.dll

参见

外部链接