I’m trying to convert from .py to exe
using cx_Freeze
I made a setup.py
code:
application_title = "Test_v_1.1"
main_python_file = "Test_V_1.py"
import sys
from cx_Freeze import setup,Executable
base = None
if sys.platform == "win32":
base ="Win32GUI"
includes=["atexit","re"]
setup(
name=application_title,
version = "0.1",
description ="Simle Test",
options={"build_exe":{"includes":includes}},
executables = {Executable(main_python_file, base = base)})
I add the code below to my setup.py and got the error
ImportError: DLL load failed: The specified module could not be found.`
import os
os.environ['TCL_LIBRARY'] = r'C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\tcl\tcl8.6'
os.environ['TK_LIBRARY'] = r'C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\tcl\tk8.6'
I have tried to use pyinstaller but sins my cmd give me the error of PyInstaller name not found
and my python don't want to uninstall pip 9.0.1 get stuck at the "uninstalling" phase I stared with a different way of converting my .py