相关疑难解决方法(0)

如何构建py2exe而不出错?

我通常不是Windows用户,但我需要从我的python代码构建exe,所以我想使用py2exe来做到这一点.我有一个XP系统,我安装了python 2.6.6.我下载了py2exe-0.6.9源代码,但是当我尝试安装(通过"python setup.py install")时,我收到错误"无法找到vcvarsall.bat".我一派,碰上了这个帖子,其中一个受访者建议可安装MinGW的GCC二进制文件的定制版本在这里.我这样做了,现在当我尝试安装py2exe时,我收到了一个新错误.这是输出:

C:\Documents and Settings\Administrator\Desktop\py2exe-0.6.9>python setup.py install
C:\Documents and Settings\Administrator\Desktop\py2exe-0.6.9\py2exe\build_exe.py:16: DeprecationWarning: the sets module is deprecated
  import sets
running install
running build
running build_py
running build_ext
building '_memimporter' extension
creating build\temp.win32-2.6
creating build\temp.win32-2.6\Release
creating build\temp.win32-2.6\Release\source
c:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DPYTHONDLL=\"PYTHON26.DLL\" -DPYTHONCOM=\"pythoncom26.dll\" -IC:\Python26\include -IC:\Python26\PC -c source/MemoryModule.c -o build\temp.win32-2.6\Release\source\memorymodule.o
source/MemoryModule.c:30: warning: ignoring #pragma warning
source/MemoryModule.c: In function 'BuildImportTable':
source/MemoryModule.c:364: warning: pointer targets in passing argument 1 of 'MyLoadLibrary' differ in signedness
source/MemoryModule.c: In function 'GetNameTable': …
Run Code Online (Sandbox Code Playgroud)

python windows py2exe

5
推荐指数
1
解决办法
3015
查看次数

标签 统计

py2exe ×1

python ×1

windows ×1