我想冻结我的程序,但是当我启动.exe时,我会收到以下消息
No module named 'ttkwidgets'在这里,安装文件
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
)发布于 2020-07-15 06:13:50
好吧,我下载了ttkwidget的文件夹,然后手动放入文件夹Lib中。在那之后,我有很多其他的错误(抱歉,我没有写错误),但是我不得不添加脚本
from tkinter import font
from tkinter import filedialog从那以后,我在PIL和image上遇到了问题,我就这么做了。
python -m pip install --upgrade pip
python -m pip install --upgrade Pillow当我冻结我的程序时,一切都在起作用
https://stackoverflow.com/questions/62897316
复制相似问题