刚开始在linux没成功等会从新来,暂转win下配置环境需下一大堆东西
python-2.6.2.msi
py2exe-0.6.9.win32-py2.6.exe
PyQt-Py2.6-gpl-4.5.1-1.exe
pywin32-214.win32-py2.6.exe
sip-4.8.1
msvcp90.dll //编译又缺需要网上下载拷贝到python2.6安装目录
-----------------------------------------------------------------
setup.py py2exe 编译有错误信息:
-------------------------------
The following modules appear to be missing
['dummy.Process', 'email.Generator', 'email.Iterators']
*** 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
POWRPROF.dll - C:\WINDOWS\system32\POWRPROF.dll
SHELL32.dll - C:\WINDOWS\system32\SHELL32.dll
KERNEL32.dll - C:\WINDOWS\system32\KERNEL32.dll
WINMM.dll - C:\WINDOWS\system32\WINMM.dll
WSOCK32.dll - C:\WINDOWS\system32\WSOCK32.dll
MSVCP90.dll - C:\Python26\MSVCP90.dll
COMDLG32.dll - C:\WINDOWS\system32\COMDLG32.dll
ADVAPI32.dll - C:\WINDOWS\system32\ADVAPI32.dll
WS2_32.dll - C:\WINDOWS\system32\WS2_32.dll
WINSPOOL.DRV - C:\WINDOWS\system32\WINSPOOL.DRV
GDI32.dll - C:\WINDOWS\system32\GDI32.dll
IMM32.dll - C:\WINDOWS\system32\IMM32.dll
VERSION.dll - C:\WINDOWS\system32\VERSION.dll
ole32.dll - C:\WINDOWS\system32\ole32.dll
运行exe gui程序又提示,查看错误日志
------------------------------------------------------
Traceback (most recent call last):
File "main.pyw", line 4, in
File "zipextimporter.pyo", line 98, in load_module
ImportError: No module named sip
------------------------------------------------------
解决方法在setup.py里optons段增加
setup(options = {"py2exe": {省略 "includes": "sip"}},省略...)
没环境在别的系统上运行还需要拷贝3个文件到程序目录
msvcp90.dll,msvcr90.dll,Microsoft.VC90.CRT.manifest
阅读(8353) | 评论(0) | 转发(0) |