我知道有"Microsoft Visual C++ Compiler for Python 2.7"个,但是目前,或者计划,Python 3.4或EVE微软Visual C++编译器的微软Visual C++编译器,用于Python 3.就这件事?如果我不必在我的整个实验室安装不同版本的visual studio,那将是非常有益的.
我知道有"Microsoft Visual C++ Compiler for Python 2.7"个,但是目前,或者计划,Python 3.4或EVE微软Visual C++编译器的微软Visual C++编译器,用于Python 3.就这件事?如果我不必在我的整个实验室安装不同版本的visual studio,那将是非常有益的.
不幸的是,为了能够使用其他人提供的扩展模块,您将被迫使用官方编译器来编译Python.这些是:
Visual Studio 2008 for Python 2.7.
Visual Studio 2010 for Python 3.4.
或者,您可以使用MinGw以一种不依赖于他人的方式编译扩展.
见:https://docs.python.org/2/install/#gnu-c-cygwin-MinGW或https://docs.python.org/3.4/install/#gnu-c-cygwin-mingw
这允许您使用一个编译器为两个版本的Python(Python 2)构建扩展.x和Python 3.十、