TA-Lib / ta-lib-python

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

install talib error in jupyter #466

Closed TinkerJueBerg closed 2 years ago

TinkerJueBerg commented 3 years ago

when input if !python path install: the error is: package directory 'talib' does not exist I think the program has something wrong

elif !pip install ta-lib: the erorr is: command 'gcc' failed with exit status 1 I think the jupyter context is not suitable for command gcc

how to solve this question ?

mrjbq7 commented 3 years ago

The gcc error probably means you don't have the underlying TA-Lib C library installed. See the README.

TinkerJueBerg commented 3 years ago

why not default python3 context, rather than python3-dev? It's not a good resolution for jupyter.

trufanov-nok commented 3 years ago

Try:

!wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz

!tar -xzf ta-lib-0.4.0-src.tar.gz
%cd ta-lib/
!./configure --prefix=$HOME
!make
!make install

!TA_LIBRARY_PATH=~/lib TA_INCLUDE_PATH=~/include pip install ta-lib
mrjbq7 commented 2 years ago

Closing all installation issues, if someone has a specific problem please open a new one.