Setup File:

from cx_Freeze import setup,Executable import os os.environ['TCL_LIBRARY'] = r"C:\Users\user\AppData\Local\Programs\Python\\Python35-32\\tcl\\tcl8.6" os.environ['TK_LIBRARY'] = r"C:\Users\user\AppData\Local\Programs\Python\\Python35-32\\tcl\\tk8.6" setup(name='Vk bot GUI', version='0.1', executables=[Executable(script='vk_gui.py')]) 

Import libraries in compiled python file:

 from tkinter.messagebox import * import vk from time import sleep from tkinter.filedialog import * from itertools import cycle import fileinput 

Mistake:

 import _tkinter # if this fails your Python may not be configured for Tk import error: DLL load failed: Не найден указанный модуль 

How to fix it?

0