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')]
)
答案 0 :(得分:0)
只需将options = {'build_exe': {'includes': ['numpy.core._methods']}}
添加到您的设置中即可。