TA-Lib / ta-lib-python

Python wrapper for TA-Lib (http://ta-lib.org/).
http://ta-lib.github.io/ta-lib-python
Other
9.59k stars 1.75k forks source link

talib in elementary linux #345

Open santiagofranchi opened 4 years ago

santiagofranchi commented 4 years ago

Hi. I am installing talib on my elementary linux (ubuntu) and it throws me the following error:

pip3 install ta-lib Collecting ta-lib Using cached TA-Lib-0.4.18.tar.gz (265 kB) Requirement already satisfied: numpy in ./.env/lib/python3.7/site-packages (from ta-lib) (1.15.4) Using legacy 'setup.py install' for ta-lib, since package 'wheel' is not installed. Installing collected packages: ta-lib Running setup.py install for ta-lib ... error ERROR: Command errored out with exit status 1: command: /home/tagonio/freqtrade/.env/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wgp9g6ks/ta-lib/setup.py'"'"'; file='"'"'/tmp/pip-install-wgp9g6ks/ta-lib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-ui0mgohi/install-record.txt --single-version-externally-managed --compile --install-headers /home/tagonio/freqtrade/.env/include/site/python3.7/ta-lib cwd: /tmp/pip-install-wgp9g6ks/ta-lib/ Complete output (27 lines): running install running build running build_py creating build creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/talib copying talib/test_abstract.py -> build/lib.linux-x86_64-3.7/talib copying talib/test_data.py -> build/lib.linux-x86_64-3.7/talib copying talib/deprecated.py -> build/lib.linux-x86_64-3.7/talib copying talib/stream.py -> build/lib.linux-x86_64-3.7/talib copying talib/test_stream.py -> build/lib.linux-x86_64-3.7/talib copying talib/test_pandas.py -> build/lib.linux-x86_64-3.7/talib copying talib/init.py -> build/lib.linux-x86_64-3.7/talib copying talib/abstract.py -> build/lib.linux-x86_64-3.7/talib copying talib/test_func.py -> build/lib.linux-x86_64-3.7/talib running build_ext building 'talib._ta_lib' extension creating build/temp.linux-x86_64-3.7 creating build/temp.linux-x86_64-3.7/talib /home/tagonio/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -fPIC -I/home/tagonio/freqtrade/.env/lib/python3.7/site-packages/numpy/core/include -I/usr/include -I/usr/local/include -I/opt/include -I/opt/local/include -I/home/tagonio/freqtrade/.env/include -I/home/tagonio/anaconda3/include/python3.7m -c talib/_ta_lib.c -o build/temp.linux-x86_64-3.7/talib/_ta_lib.o In file included from /home/tagonio/anaconda3/include/python3.7m/Python.h:11:0, from talib/_ta_lib.c:4: /usr/include/limits.h:26:10: fatal error: bits/libc-header-start.h: No such file or directory

include <bits/libc-header-start.h>

^~~~~~ compilation terminated. error: command '/home/tagonio/anaconda3/bin/x86_64-conda_cos6-linux-gnu-cc' failed with exit status 1

ERROR: Command errored out with exit status 1: /home/tagonio/freqtrade/.env/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-wgp9g6ks/ta-lib/setup.py'"'"'; file='"'"'/tmp/pip-install-wgp9g6ks/ta-lib/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-ui0mgohi/install-record.txt --single-version-externally-managed --compile --install-headers /home/tagonio/freqtrade/.env/include/site/python3.7/ta-lib Check the logs for full command output.

mrjbq7 commented 4 years ago

This is similar to #338 and they reported that the first answer to this helped:

https://stackoverflow.com/questions/54082459/fatal-error-bits-libc-header-start-h-no-such-file-or-directory-while-compili