Код сборщика:
import sys
from cx_Freeze import setup, Executable
import os
os.environ['TCL_LIBRARY'] = r'C:\Users\2qwen\AppData\Local\Programs\Python\Python37\tcl\tcl8.6'
os.environ['TK_LIBRARY'] = r'C:\Users\2qwen\AppData\Local\Programs\Python\Python37\tcl\tk8.6'
buildOptions = dict(
packages = ["os", "tkinter"],
excludes = [],
includes = ["tkinter"],
include_files=[r'C:\Users\2qwen\AppData\Local\Programs\Python\Python37\DLLs\tcl86t.dll', r'C:\Users\2qwen\AppData\Local\Programs\Python\Python37\DLLs\tk86t.dll']
)
base = 'Win32GUI' if sys.platform=='win32' else None
executables = [
Executable('yp4.py', base=base)
]
setup(name='YandexParser',
version = '0.4',
description = 'YandexParser',
options = dict(build_exe = buildOptions),
executables = executables)
Код самой программы:
https://pastebin.com/tvTNyhUb
При сборке ругается на отсутствие tkinter, хотя уже везде где можно прописал.
ModuleNotFoundError: no module named 'tkinter'
Собираю под Windows