[英]error with cx_freeze No module named 'ttkwidgets'
I want to freeze my program but when I do that and I launch the.exe I have the following message我想冻结我的程序,但是当我这样做并启动.exe时,我收到以下消息
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.好吧,我下载了 ttkwidgets 的文件夹,然后手动放入了文件夹 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之后我遇到了 PIL 和图像问题,我就这样做了
python -m pip install --upgrade pip
python -m pip install --upgrade Pillow
And when I freeze my program all it's working当我冻结我的程序时,它一切正常
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.