Errors while building/installing C module for Python 2.7

I summarized above in my blog.
http://springflex.blogspot.com/2014/02/how-to-fix-valueerror-when-trying-to.html

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 (the C++ installer name is vcsetup.exe):

  2. Install the Microsoft Windows SDK. The Microsoft Windows SDK is available by searching Microsoft’s download site, or by going directly to:
    http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF&displaylang=en

  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
    
  4. copy …/VC/bin/vcvars64.bat to …/VC/bin/vcvarsamd64.bat

  5. copy …/VC/bin/vcvars64.bat to …/VC/bin/amd64/vcvarsamd64.bat

Leave a Comment