cxfreeze与python for.net不兼容吗?

2024-09-29 19:19:14 发布

您现在位置:Python中文网/ 问答频道 /正文

为了测试,我使用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冻结。


Tags: pyimportgithubmastercomdemosetupexe

热门问题