I am trying to convert a .py file to .exe using cx_Freeze 5.1.1., but an ImportError: DLL load failed
pops up every time I try to run the file. Based on the sug
In cx_Freeze
version 5.1.1, the included modules are in a subdirectory lib
of the build directory. The tcl86t.dll
and tk86t.dll
DLLs apparently need to be moved there as well.
You can do this with the following modification of your setup.py
script:
build_exe_options = {"packages": ["winsound", "random", "time", "tkinter", "math"],
"include_files": [('tcl86t.dll', os.path.join('lib', 'tcl86t.dll')),
('tk86t.dll', os.path.join('lib', 'tk86t.dll'))]}