python 3.x - Using py2exe by just running the script, no command-line -
i know there's question answer didn't work me. when append py2exe argument in program, , run it, noticed it's missing bunch of files. when run exe, says
file "boot_common.py", line 46 in <module> importerror: no module named 'ctypes'
can me on how fix this? here's code:
from distutils.core import setup import py2exe, sys import tkinter tk tkinter import filedialog input('press enter continue , select python file want convert when dialog shows up...') tk.tk().withdraw() file_path = tk.filedialog.askopenfilename() sys.argv.append("py2exe") setup(console=[file_path])
also if helps, i'm using 32-bit python interpreter.
Comments
Post a Comment