error: Setup script exited with error: Python was built with Visual Studio 2003; extensions must be built with a compiler than can generate compatible binaries. Visual Studio 2003 was not found on this system. If you have Cygwin installed, you can try compiling with MingW32, by passing "-c mingw32" to setup.py.
But there are four easy steps to get through this hurdle.
1. Get and install MinGW from (http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=240780)
I installed the stable version into the default directory.
2. Add c:\mingw\bin to your PATH environment variable.
3. Put these lines into
[build] compiler = mingw32 [config] compiler = mingw324. Copy c:\windows\system32\python25.dll into c:\mingw\lib
Otherwise you would get:
c:\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot find -lpython25
collect2: ld returned 1 exit status
error: Setup script exited with error: command 'gcc' failed with exit status 1
If you are using virtualenv you have to do the step 2 for all of your python virtual environments.
And you are done. This is my setup and it's sufficient to install source distributions of setuptools, cx_Oracle, simplejson, mercurial and probably other libraries. I was able to use it on Windows Vista and 2003 Server with both Python 2.5 a and Python 2.6.