第一次使用stackoverflow所以请容易。我之前在我的旧电脑上使用过py2exe,并且工作正常。不幸的是,当试图使用它在我的新的EXE。文件不起作用。尝试转换.py文件时出现这些错误。py2exe - “以下模块似乎缺少”
我设置的.py
from distutils.core import setup
import py2exe
setup(windows=['Test.py'])
我Test.py转换为EXE。
def Test():
print 'TEST'
Test()
的错误我收到:
The following modules appear to be missing
['IronPythonConsole', 'System', 'System.Windows.Forms.Clipboard', '_scproxy', 'c
lr', 'console', 'modes.editingmodes', 'pyreadline.keysyms.make_KeyPress', 'pyrea
dline.keysyms.make_KeyPress_from_keydescr', 'pyreadline.keysyms.make_keyinfo', '
pyreadline.keysyms.make_keysym', 'startup']
*** binary dependencies ***
Your executable(s) also depend on these dlls which are not included,
you may or may not need to distribute them.
Make sure you have the license if you distribute any of them, and
make sure you don't distribute files belonging to the operating system.
OLEAUT32.dll - C:\WINDOWS\system32\OLEAUT32.dll
USER32.dll - C:\WINDOWS\system32\USER32.dll
SHELL32.dll - C:\WINDOWS\system32\SHELL32.dll
KERNEL32.dll - C:\WINDOWS\system32\KERNEL32.dll
ADVAPI32.dll - C:\WINDOWS\system32\ADVAPI32.dll
WS2_32.dll - C:\WINDOWS\system32\WS2_32.dll
GDI32.dll - C:\WINDOWS\system32\GDI32.dll
VERSION.dll - C:\WINDOWS\system32\VERSION.dll
ole32.dll - C:\WINDOWS\system32\ole32.dll
任何想法?我刚刚放弃在网上寻找,因为我似乎找不到任何问题的答案。我会很感激一些帮助。
我只是运行相同的代码,它没有给任何缺少模块错误。什么尝试重新安装py2exe。 – TheCreator232