我正在尝试使用cx_Freeze将Python应用程序构建到exe中。我在使用Windows 10的机器上安装了Phthon 3.4。我使用Python 3.5再次尝试了确切的过程并获得了完全相同的响应,因此它不是3.4问题。当我构建它时编译,但我收到错误:
Missing modules:
? _dummy_threading imported from dummy_threading
? ce imported from os
? doctest imported from heapq
? getopt imported from base64, quopri
? org.python.core imported from copy
? os.path imported from os
? posix imported from os
? pwd imported from posixpath
? subprocess imported from os
This is not necessarily a problem - the modules may not be needed on this platform.
这是我的setup.py文件:
from cx_Freeze import Executable, setup
setup(
NameError="amazon_pins",
version="0.1",
description="my_script",
executables=[Executable("my_script.py")],
)
当我在同一台计算机上从命令提示符运行可执行文件时,它立即关闭,没有给出错误消息。 python脚本本身运行完美。
有什么可能导致这种情况的猜测?