编译.py到.exe后出错

时间:2017-11-12 17:36:30

标签: python-3.x cx-freeze

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')]

1 个答案:

答案 0 :(得分:0)

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