【问题标题】:Where can I download a development headers of Python 2.7.3 for Windows?我在哪里可以下载适用于 Windows 的 Python 2.7.3 的开发头文件?
【发布时间】:2012-10-16 09:10:09
【问题描述】:

可能是我的 google-fu 很丑,但我找不到适用于 Windows 的 Python 2.7.3 开发标头的下载链接。它存在于某个地方吗?

我正在尝试使用 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

【问题讨论】:

    标签: python windows development-environment header-files


    【解决方案1】:

    通过观察我的安装,头文件包含在安装程序中。如果您使用标准安装目录,它们应该位于 c:\Python27\包括

    对于只有标题的特定文件,我也找不到。但总有源头!

    【讨论】:

    • 嗯。我尝试用 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'] 命令返回'构建失败:-> 任务failed (err #1): \n\t{task: cc test.c -> test_1.o}'找不到python开发头文件
    • @AmigableClarkKant,什么“为什么”? :)
    • 听起来构建 pyinstaller 很痛苦,你能避免吗?再说一次,我真的不明白如何使用它所以......
    • 嗯,这只是实验。 :) 我想尝试比较 pyinstaller,用 msvc(我认为默认)和 mingw 构建。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-02-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-01
    相关资源
    最近更新 更多