我只是使用Py2exe将一个简单的pygame程序编译成一个可执行文件,但是我得到了以下错误:
*** 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
IMM32.dll - C:\windows\system32\IMM32.dll
SHELL32.dll - C:\windows\system32\SHELL32.dll
ole32.dll - C:\windows\system32\ole32.dll
COMDLG32.dll - C:\windows\system32\COMDLG32.dll
COMCTL32.dll - C:\windows\system32\COMCTL32.dll
ADVAPI32.DLL - C:\windows\system32\ADVAPI32.DLL
WS2_32.dll - C:\windows\system32\WS2_32.dll
GDI32.dll - C:\windows\system32\GDI32.dll
WINMM.DLL - C:\windows\system32\WINMM.DLL
KERNEL32.dll - C:\windows\system32\KERNEL32.dll
SDL_ttf.dll - C:\Python27\lib\site-packages\pygame\SDL_ttf.dll
libogg-0.dll - C:\Python27\lib\site-packages\pygame\libogg-0.dll
当我试图运行创建的.exe时,它不运行。我对Pygame相当熟悉,但Py2exe对我来说是全新的。感谢任何帮助,因为我整个上午都在网上寻找解决方案。
当我试着运行它时会出现这样的情况:
^{pr2}$
尝试将此添加到主程序中:
它解决了我在编译pygame时的问题
相关问题 更多 >
编程相关推荐