So I\'m trying to use Cython on ta-lib, and I\'m using the wrapper provided by mrjbq7 (many thanks..). So I tried to install Cython-0.19.1 on my computer and then do p
I don't think your troubles have anything to do with the fact that you're installing the TA-lib wrapper
, so here are a few suggestions :
Python 2.7.X
(I suspect some incompatibilities between some Python versions and Cython versions : at least, the kind of errors you mentioned remind me something...).If this doesn't help, rebuild Cython as follows :
Tell disutils
to use gcc... Create file C:\Python27\Lib\distutils\distutils.cfg
and write this inside :
[build]
compiler = mingw32
If needed, remove all instances of -mno-cygwin
gcc option from file C:\Python27\Lib\distutils\cygwinccompiler.py
:
# self.set_executables(compiler='gcc -mno-cygwin -O -Wall',
# compiler_so='gcc -mno-cygwin -mdll -O -Wall',
# compiler_cxx='g++ -mno-cygwin -O -Wall',
# linker_exe='gcc -mno-cygwin',
# linker_so='%s -mno-cygwin %s %s'
# % (self.linker_dll, shared_option,
# entry_point))
# becomes :
self.set_executables(compiler='gcc -O -Wall',
compiler_so='gcc -mdll -O -Wall',
compiler_cxx='g++ -O -Wall',
linker_exe='gcc',
linker_so='%s %s %s'
% (self.linker_dll, shared_option,
entry_point))
# Just because `-mno-cygwin` has just been removed from early versions of gcc.
Build and install Cython : $ python setup.py install
In any cases : Make sure to have the proper PATH
s for Cython :
SET PYTHONPATH=%PYTHONPATH%;../../../DEPENDENCIES/Cython-0.19.1
SET PATH=%PATH%;../../../DEPENDENCIES/Cython-0.19.1/bin
Try rebuilt TA-lib and please tell me what it says ;-)