我在Ta-Lib python安装上有几个主题。我已经下载了Cython并尝试执行easy_install但是收到以下错误:
talib.c:256:28: error: ta-lib/ta_libc.h: No such file or directory
talib.c: In function ‘__pyx_pf_5talib_ACOS’:
talib.c:2391: warning: assignment from incompatible pointer type
talib.c:2502: warning: implicit declaration of function ‘TA_Initialize’
talib.c:2511: warning: implicit declaration of function ‘TA_ACOS_Lookback’
talib.c:2569: warning: implicit declaration of function ‘TA_ACOS’
talib.c:2578: warning: implicit declaration of function ‘TA_Shutdown’
talib.c:2587: error: ‘TA_SUCCESS’ undeclared (first use in this function)
talib.c:2587: error: (Each undeclared identifier is reported only once
talib.c:2587: error: for each function it appears in.)
talib.c: In function ‘__pyx_pf_5talib_2AD’:
答案 0 :(得分:2)
我写了TA-Lib python wrapper使用Cython来包装TA-Lib中的所有函数,并在Github上发布它。它非常适合我,使用Numpy阵列,比SWIG界面快2-4倍,更“pythonic”,更容易安装(适用于Mac OS X)。
您似乎没有正确链接到基础TA-Lib
C库 - 您安装了吗?在Mac OS X上,您可以brew install ta-lib
。有关其他安装指南,请查看TA-Lib.org