为给定版本的 Python 构建扩展模块需要什么版本的 Visual Studio 和/或 MinGW? [英] What version of Visual Studio and/or MinGW do I need to build extension modules for a given version of Python?

查看:28
本文介绍了为给定版本的 Python 构建扩展模块需要什么版本的 Visual Studio 和/或 MinGW?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

换个角度来说,从 python.org 构建的 Python 的每个官方 Python 版本是什么版本的 Visual C++,以及哪些版本的 MinGW 与这些版本的 Visual C++ 兼容?

To put this question a different way, what version of Visual C++ was each official build of Python from python.org of Python built with, and what versions of MinGW are compatible with those versions of Visual C++?

在某些网站上可以轻松获得这些信息吗?

Is this information readily available on some web site?

推荐答案

每个版本的Python源码分发包中的PCbuild eadme.txt文件包含了所使用的Visual Studio版本制作二进制文件.

The file PCbuild eadme.txt in the source distribution of each version of Python includes the version of Visual Studio used to make the binaries.

Python 2.6、2.7、3.1 和 3.2 都是用 VS 2008 编译的.Python 3.3 和 3.4 是用 VS 2010 编译的.

Python 2.6, 2.7, 3.1, and 3.2 were all compiled with VS 2008. Python 3.3 and 3.4 are compiled with VS 2010.

我不确定 MinGW 的兼容性.

I'm not sure about MinGW compatibility.

如果您正在寻找命令行编译器,Microsoft 已为 Windows 7 发布了两个不同的 SDK,其中包括命令行编译器.第一个 SDK(用于 .NET 3.5)包括 VS 2008 编译器.第二个 SDK(用于 .NET 4.0)包括 VS 2010 编译器.

If you are looking for command line compilers, Microsoft has released two different SDKs for Windows 7 that include the command line compilers. The first SDK (for .NET 3.5) includes the VS 2008 compilers. The second SDK (for .NET 4.0) includes the VS 2010 compilers.

更新:每个 Python 版本的源代码分发中的文件 PCbuild eadme.txt 包括用于制作二进制文件的 Visual Studio 版本.

Update: The file PCbuild eadme.txt in the source distribution of each version of Python includes the version of Visual Studio used to make the binaries.

这篇关于为给定版本的 Python 构建扩展模块需要什么版本的 Visual Studio 和/或 MinGW?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆