Search code examples
python-3.xcx-freeze

error after compiling .py to .exe


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

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

from cx_Freeze import setup, Executable

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

)


Solution

  • Just add options = {'build_exe': {'includes': ['numpy.core._methods']}} to your setup.