How to compile .exe to run the program on any computer? There is a test.py script
from open3d import * import numpy as np import copy import sys import os def draw_registration_result(source, target, transformation): source_temp = copy.deepcopy(source) target_temp = copy.deepcopy(target) source_temp.paint_uniform_color([1, 0.706, 0]) target_temp.paint_uniform_color([0, 0.651, 0.929]) source_temp.transform(transformation) #draw_geometries([source_temp, target_temp]) test = source_temp + target_temp write_point_cloud('test_combined.xyz', test) print("Успешно") ... Made the setup.py script as shown here indicating the packages used
from cx_Freeze import setup, Executable import sys import matplotlib import os PYTHON_INSTALL_DIR = os.path.dirname(os.path.dirname(os.__file__)) os.environ['TCL_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR,'tcl','tcl8.6') os.environ['TK_LIBRARY'] = os.path.join(PYTHON_INSTALL_DIR, 'tcl', 'tk8.6') files = {"include_files": ["D:/Python36/DLLs/tcl86t.dll", "D:/Python36/DLLs/tk86t.dll"], "packages": ["tkinter", "easygui","matplotlib"]} packages = ["open3d", "numpy","sys","os","copy"] build_exe_options = { "packages": packages, "includes": packages, 'include_files': [], 'zip_include_packages': "*", 'zip_exclude_packages': None, 'include_msvcr': True, 'constants':{} } setup( name = "test", version = "0.1", description = "Blackjack", options={"build_exe": build_exe_options}, executables = [Executable("test.py")] ) I used cx_Freeze to create an .exe file, the python setup.py build command python setup.py build executes successfully and creates an executable file. When using the program such an error
I tried to install pyinstaller, but unsuccessfully, he doesn’t want to install on my version of python 3.6. Tell me, how to do it correctly so that the program can work?
Ps I'm new to Python programming