Skip to content
Sign upLog in
← Back to Community
Using Python module with binary dependency?
Profile icon
alizeefan

Hi,

I need TA-Lib for my project. Unformatunately adding it to the requirements doesn't work :(

TA-Lib==0.4.17

[...]
warnings.warn('Cannot find ta-lib library, installation may fail.')
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/talib
copying talib/test_data.py -> build/lib.linux-x86_64-2.7/talib
copying talib/stream.py -> build/lib.linux-x86_64-2.7/talib
copying talib/test_stream.py -> build/lib.linux-x86_64-2.7/talib
copying talib/init.py -> build/lib.linux-x86_64-2.7/talib
copying talib/test_abstract.py -> build/lib.linux-x86_64-2.7/talib
copying talib/deprecated.py -> build/lib.linux-x86_64-2.7/talib
copying talib/test_pandas.py -> build/lib.linux-x86_64-2.7/talib
copying talib/abstract.py -> build/lib.linux-x86_64-2.7/talib
copying talib/test_func.py -> build/lib.linux-x86_64-2.7/talib
running build_ext
building 'talib._ta_lib' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/talib
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/lib/python2.7/site-packages/numpy/core/include -I/usr/include -I/usr/local/include -I/opt/include -I/opt/local/include -I/usr/local/include/python2.7 -c talib/_ta_lib.c -o build/temp.linux-x86_64-2.7/talib/_ta_lib.o
talib/_ta_lib.c:526:28: fatal error: ta-lib/ta_defs.h: No such file or directory
#include "ta-lib/ta_defs.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1


Failed building wheel for TA-Lib
Running setup.py clean for TA-Lib
Failed to build TA-Lib

Is there a workaround to manually upload the library instead of compiling it?

Voters
Profile icon
RaizFractal
Profile icon
flyWS
Profile icon
ard79
Profile icon
WILLIAMSCHELLIN
Profile icon
alizeefan
Comments
hotnewtop
Profile icon
RaizFractal

Hi, did you manage to solve this?

Profile icon
[deleted]

id look in the packages menu and put at line one of your code import TA-Lib

Profile icon
RaizFractal

I did try. It returns an error.