![]() ![]() If you do not have gcc, you will need to download and install XCode from Apple:Īnd then install the "Command Line Tools" from within XCode (accessible from the XCode > Preferences window in the "Downloads" tab under "Components"). Please check (using the Terminal application) whether you already have gcc installed, by typing "gcc" at the command prompt. On 32-bit, it tends to work pretty nicely for some trivial cases, but has the very same drawbacks as using a different version of Visual Studio, mentioned above. ![]() The MinGW stack is another solution that is very often used on Windows. Newer versions of the compiler use a new CRT (10 and higher), which should not be used with Python 2. You can then "cd X:yourpath" to navigate to the Python code which you are building, and build your C extensions by entering: python.exe setup.py build_ext -inplace -compiler=msvcĪny other version of Visual Studio post-2008 is not supported. Python 2 is built with the CRT9.0 which is included in Visual Studio 2008. Open a Canopy Command Prompt from Canopy's Tools menu or from the Windows Start menu.Install Microsoft Visual C++ Compiler for Python ![]() Here is how to compile C extensions (including 64-bit extensions) using Microsoft Visual C++ Compiler for Python: Microsoft released the Visual C++ Compiler for Python 2.7. Enthought Python users can use this compiler to build extensions following the instructions found on the Cython wiki: On Windows, standard Python 2.7 supports only specific C++ compilers ( ). Install Microsoft Visual C++ compiler for Visual Studio 2015 (not another version). Here is a direct link to the installer:Įnthought Python is built on a standard Python 2.7 environment. To build Python extension modules, you will need to have the same (or functionally identical) C compiler that was used to compile Python for your platform (OS). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |