我试图将我的Python代码打包到一个exe文件中,但是按照下面链接上的所有说明进行操作后,我设法构建了一个exe文件,但是当我尝试运行它时,没有任何反应。
https://cx-freeze.readthedocs.io/en/latest/distutils.html
我的setup.py文件是
import sys
from cx_Freeze import setup, Executable
build_exe_options = {"packages": ["os","tkinter", "pandas" , "openpyxl", "datetime", "time"]}
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup( name = "login",
version = "0.1",
description = "My GUI application!",
options = {"build_exe": build_exe_options},
executables = [Executable("login.py", base=base)])
我的登录文件在Anaconda上运行没有任何错误。
有人可以评论可能导致问题的原因吗?