pyWin32 支持吗?建造时遇到麻烦;语法错误
我刚刚下载了 pyWin32 (https://sourceforge.net/projects/pywin32/) 并开始安装它。
我的第一个问题:有人知道我在哪里可以获得特定的 pyWin32 支持吗?我在 sourceforge 上看不到/找到任何东西。
第二个问题:你们中有人遇到过 h2py.py 在安装过程中遇到语法错误的问题吗?
我收到此消息:
C:\Users\someone\pywin32-214>python setup.py build
Building pywin32 2.6.214.0
running build
running build_py
running build_ext
Found version 0x600 in C:\Program Files\\Microsoft SDKs\Windows\v6.0A\include\SDKDDKVER.H
Skipping exchange: No library 'Ex2KSdk'
Skipping exchdapi: No library 'Ex2KSdk'
Skipping directsound: The header 'dsound.h' can not be located
building exe 'pythonservice'
building exe 'Pythonwin'
c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe /nologo /f makefile_pythonwin SUB_DIR_O=C:\Users\Benni\Desktop\pywin32-214\build\temp.win32-2.6\Release\scintilla SUB_DIR_BIN=C:\Users\someone\pywin32-214\build\temp.win32-2.6\Release\scintilla DIR_PYTHON=C:\Python26
C:\Python26\tools\scripts\h2py.py Include\scintilla.h
File "C:\Python26\tools\scripts\h2py.py", line 134
exec stmt
^
SyntaxError: invalid syntax
NMAKE : fatal error U1077: "C:\Python26\tools\scripts\h2py.py": return-value "0x1"
Stop.
error: command 'nmake.exe' failed with exit status 2
但是当我查看提到的 h2py.py 时,我看不到任何语法错误(当然!!:-))
那么,有人知道我如何应对这个问题吗?那太好了! :-)
TIA 本
I just downloaded pyWin32 (https://sourceforge.net/projects/pywin32/) and started to install it.
My first question: does anybody know, where I can get specific pyWin32-support? I can't see/find anything at sourceforge.
2nd question: Did anybody of you encounter the problem, that h2py.py ran into an syntax-error during installation?
I get this msg:
C:\Users\someone\pywin32-214>python setup.py build
Building pywin32 2.6.214.0
running build
running build_py
running build_ext
Found version 0x600 in C:\Program Files\\Microsoft SDKs\Windows\v6.0A\include\SDKDDKVER.H
Skipping exchange: No library 'Ex2KSdk'
Skipping exchdapi: No library 'Ex2KSdk'
Skipping directsound: The header 'dsound.h' can not be located
building exe 'pythonservice'
building exe 'Pythonwin'
c:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\nmake.exe /nologo /f makefile_pythonwin SUB_DIR_O=C:\Users\Benni\Desktop\pywin32-214\build\temp.win32-2.6\Release\scintilla SUB_DIR_BIN=C:\Users\someone\pywin32-214\build\temp.win32-2.6\Release\scintilla DIR_PYTHON=C:\Python26
C:\Python26\tools\scripts\h2py.py Include\scintilla.h
File "C:\Python26\tools\scripts\h2py.py", line 134
exec stmt
^
SyntaxError: invalid syntax
NMAKE : fatal error U1077: "C:\Python26\tools\scripts\h2py.py": return-value "0x1"
Stop.
error: command 'nmake.exe' failed with exit status 2
But when I look into the mentioned h2py.py I can't see any syntax-error (of course!! :-) )
So, has anybody any idea how I could cope with this? That'd be great! :-)
TIA
Ben
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么需要构建?为什么不通过下载并执行 pywin32-214.win32-py2.6.exe 来安装预构建的二进制文件?它非常适合我。
Why do you need to build? Why not just install the pre-built binaries by downloading and executing
pywin32-214.win32-py2.6.exe
? It works perfectly for me.