这是在用 cx_freeze 打包 tensorflow 应用时出现的错误,解决办法为在setup.py里面build_exe_options加上"excludes":['Tkinter'],注意T大写!像cx_freeze官网那样小写tkinter没有用!
_tkinter.TclError: no display name and no $DISPLAY environment variable
最新推荐文章于 2023-10-03 15:01:35 发布