Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3098075
  • 博文数量: 797
  • 博客积分: 10134
  • 博客等级: 上将
  • 技术积分: 9335
  • 用 户 组: 普通用户
  • 注册时间: 2006-06-22 22:57
个人简介

1

文章分类

全部博文(797)

文章存档

2022年(1)

2021年(2)

2017年(2)

2016年(1)

2015年(4)

2014年(1)

2013年(6)

2012年(6)

2011年(10)

2010年(26)

2009年(63)

2008年(61)

2007年(51)

2006年(563)

我的朋友

分类:

2009-07-11 11:38:41


刚开始在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


阅读(8246) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~