I’m trying to build mrjbq7’s wrapper for TA-Lib for Python. After several attempts, I’m fairly sure the wrapper won’t build because I have Visual Studio 2010, but my Python is looking for the compiler from Visual Studio 2008. Is it possible to get only the compiler? I have a feeling I may need to install Visual Studio 2008 side by side (saw another thread said this works with no problem), but would prefer to avoid it if possible. Is it possible?
More info:
Visual Studio 2010 Express installed
Windows 7
Python 2.7.3
pythonxy27 also installed
Reason to suspect it is compiler version:
a – last error I get is reference to unknown _ftol2_sse_, which other threads have said is due to using the wrong compiler
b – sys.version for MSC v. is 1500, which is for MSVC 9.0 (used a couple of lines from distutils\cygwincompiler.py in an interpreter to find this)
I hope that’s all required info, I’ll add more if needed.
You don’t need Visual Studio installed at all to compile Python extensions. Install the appropriate Windows SDK (for Python 2.7 that would be here). Then, using the Windows SDK command prompt, convince distutils to use MSVC 2008:
You should then be able to then install via setup.py