将.py 编译成.exe 后出错
error after compiling .py to .exe
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')]
)
只需将 options = {'build_exe': {'includes': ['numpy.core._methods']}}
添加到您的设置中。
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')]
)
只需将 options = {'build_exe': {'includes': ['numpy.core._methods']}}
添加到您的设置中。