我该在哪里下载Python 2.7.3 Windows版的开发头文件?

3

也许我的搜索技巧不太好,但我找不到Python 2.7.3的Windows开发头文件的下载链接。它是否存在于某个地方?

我试图使用mingw构建pyinstaller。'waf configure'的完整日志如下- pastebin.com/tJyydGJc

我遇到了以下错误:

['C:\\MinGW32\\bin\\gcc.exe', '-Wdeclaration-after-statement', '-Werror', '-fno-strict-aliasing', '-IC:\\\\Python27\\\\include', '..\\test.c', '-c', '-o', 'default\\test_1.o'] 
command returned 'Build failed: -> task failed (err #1): \n\t{task: cc test.c -> test_1.o}'Could not find the python development headers
1个回答

1
通过观察我的安装,头文件已经包含在安装程序中。如果您使用标准安装目录,则应该位于c:\Python27\include下。
对于仅具有头文件的特定文件,我也找不到。但总有源代码!

。嗯。我尝试使用mingw构建pyinstaller。 'waf configure'的完整日志- http://pastebin.com/tJyydGJc。我看到以下错误: ['C:\ MinGW32 \ bin \ gcc.exe','-Wdeclaration-after-statement','-Werror','-fno-strict-aliasing','-IC:\\ Python27 \\ include','..\ test.c','-c','-o','default \ test_1.o'] 命令返回“构建失败:->任务失败(err#1):\ n\t {task:cc test.c -> test_1.o}”找不到python开发头文件 - strangeman
@AmigableClarkKant,什么是“为什么”? :) - strangeman
听起来构建pyinstaller很麻烦,你能避免它吗?但是,我真的不太明白如何使用它... - Prof. Falken
哦,这只是一个实验。 :) 我想尝试比较使用 MSVC(默认)和使用 MinGW 构建的 PyInstaller。 - strangeman

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接