为了测试,我使用demo fromhttps://github.com/pythonnet/pythonnet/blob/master/demo/wordpad.py将它转换为.exe,使用cx\u freze==5.0。
但是它显示缺少clr模块(显然)。 怎么处理这个?
import sys
from cx_Freeze import setup, Executable
setup(
name = "WordPad",
version = "3.1",
description = "A word pad demo",
executables = [Executable("main.pyw", base = "Win32GUI")])
免责声明:这是我第一次尝试使用cx\U冻结。
pythonnet的自动发现被合并到cx_freeze中:
https://github.com/anthony-tuininga/cx_Freeze/pull/251
相关问题 更多 >
编程相关推荐