I want to freeze my program but when I do that and I launch the.exe I have the following message
No module named 'ttkwidgets'
Here the install file
import sys
from cx_Freeze import setup, Executable
base = None
if sys.platform == 'win32':
base = 'Win32GUI'
options = {
'build_exe': {
'includes': 'atexit'
}
}
executables = [
Executable('BouclePrincipale.py', base="Win32GUI")
]
setup(name='simple_Tkinter',
version='0.1',
description='Sample cx_Freeze Tkinter script',
executables=executables
)
Well I dowloaded the folder of ttkwidgets and I manualy put into the folder Lib. After that I had plenty other error (sorry I didn't write the error) but I had to add in the script
from tkinter import font
from tkinter import filedialog
after that I had a problem with PIL and image and I do that
python -m pip install --upgrade pip
python -m pip install --upgrade Pillow
And when I freeze my program all it's working
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.