[Numpy-discussion] mingw-w64 tutorial ?

Sebastian Haase seb.haase@gmail....
Tue Aug 24 20:39:54 CDT 2010


On Sun, Aug 22, 2010 at 10:35 AM, Robin <robince@gmail.com> wrote:
> On Sun, Aug 22, 2010 at 8:41 AM, Sebastian Haase <seb.haase@gmail.com> wrote:
>>>>> Do you know if that contains a C++ compiler ?  The first page before
>>>>> it starts the actual download has "Visual C++ Compilers" grayed out
>>>>> ... !?
>>>>>
>>>>> -Sebastian
>>>>>
>>>> Ok, apparently I had to install the "dot NET Framework 4" from
>>>> http://msdn.microsoft.com/en-us/netframework/aa569263.aspx
>>>> first, before then the C++ could be installed.
>>>> But now setup.py still complains:
>>>>       error: Unable to find vcvarsall.bat
>>>> and I think it is looking for
>>>> C:\Program Files (x86)\Microsoft Visual Studio 9.0
>>>> while that file got installed in
>>>> C:\Program Files (x86)\Microsoft Visual Studio 10.0
>>>> I don't know how to get the "log.debug" messages from the setup.py
>>>> script activated...
>>>> ?
>
> My limited understanding is that there are two different versions of
> microsoft stuff at the moment:
> VS 2008 which goes with SDK 3.5 and VS 2010 which goes with SDK 4.0. I
> think Python is built with 2008 so that might be easier to try. I'm
> not sure though.
>
> While the SDK contains some compilers I think the easiest way to get
> the compilers working is to first install the VS express edition,
> which is 32 bit, and then install the SDK which provides 64 bit
> support. Here are some instructions I lifted from the Matlab website
> (I haven't tried building Python extensions yet but I was able to
> embed Python with this setup).
>
> To install Visual Studio 2008 Express Edition with all required components:
> 1. Install Microsoft Visual Studio 2008 Express Edition. The main
> Visual Studio 2008 Express installer is available from:
> http://www.microsoft.com/express/Downloads/#Visual_Studio_2008_Express_Downloads
> This package can be installed using the default options.
>
> 2. Install the Microsoft Windows SDK. The Microsoft Windows SDK is
> available by searching Microsoft's download site, or by going directly
> to:
> http://msdn.microsoft.com/en-us/windowsserver/bb980924.aspx
> or
> http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF&displaylang=en
>
> Download the Windows Server 2008 & .NET 3.5 SDK. Do not install beta
> or 'Release Candidate' (RC) versions. Also do NOT install "Microsoft
> Windows SDK for Windows 7 and .NET Framework 4" (version 7.1); if you
> want to use a 7.x version choose the "Microsoft Windows SDK for
> Windows 7 and .NET Framework 3.5 SP1".
>
> 2.1. While installing the SDK, you must select "x64 Compilers and
> Tools". For example, in the SDK installer above:
> On screen "Installation Options"
> Select "Developer Tools"->"Visual C++ Compilers".
> This item has the Feature Description "Install the Visual C++ 9.0
> Compilers. These compilers allow you to target x86, x64, IA64
> processor architectures."
>
> 3. To verify that you have all installed components, check that the
> Microsoft SDK contains the "amd64" version of the C/C++ compiler
> "cl.exe". This is usually installed into
>
>
> C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64\cl.exe
>
>
> Cheers
>
> Robin

Robin,
thanks for those links.
My experience is more like the one described by fuzion at
http://nukeit.org/compile-python-2-7-packages-with-visual-studio-2010-express/
That is, I did not see any problem - yet.
But since I blindly believe you guys here ... I will now research on
how de-install the .NET 4 and the VS 2010 stuff....
-Sebastian


More information about the NumPy-Discussion mailing list