【问题标题】:error after compiling .py to .exe将 .py 编译为 .exe 后出现错误
【发布时间】:2017-11-12 17:36:30
【问题描述】:

when I compile a program from .py into .exe and open .exe, this error appears

当我将程序从.py编译成.exe并打开.exe时,出现此错误

from cx_Freeze import setup, Executable

setup(
name = "Diophantine equantion",
version = "1.0",
description = "Diophantine equantion",
executables = [Executable("Diofant.py", base='Win32GUI')]

)

【问题讨论】:

    标签: python-3.x cx-freeze


    【解决方案1】:

    只需将options = {'build_exe': {'includes': ['numpy.core._methods']}} 添加到您的设置中即可。

    【讨论】:

    • 请写完整的代码,因为它会在命令行产生错误
    • 嗯...你可能在末尾漏掉了一个逗号。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-09
    • 2016-08-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多