0

I am using python 3.6 on Windows. I downloaded "cx_Freeze-4.3.3.win-amd64-py3.3" to make my "python script " to an exe file. I managed to get an exe file under build folder but it doesn't work.

this is my code

#script file which I named scriptbutton.py.txt
print("hello")

And this is the code I am using for set-up script.(scriptsetup.py.txt)

import os.path
import sys
from cx_Freeze import setup, Executable
os.environ['TCL_LIBRARY'] = "C:\\LOCAL_TO_PYTHON\\Python35-32\\tcl\\tcl8.6"
os.environ['TK_LIBRARY'] = "C:\\LOCAL_TO_PYTHON\\Python35-32\\tcl\\tk8.6" 

setup (name= 'scripting', version='3.1', description='make exe file', 
       executables= [Executable ("scriptbutton.py.txt", base="Win32GUI")])

this is the error message, when I double clicked on exe file.

this is the error message, when I double clicked on exe file.

Any help is appreciated.

Cheers

Ozgur
  • 162
  • 1
  • 10

0 Answers0