What is TA-LIB?
TA-Lib is widely used by trading software developers requiring to perform technical analysis of financial market data.
tar -xzf ta-lib-0.4.0-src.tar.gz
1.2 Install TA-LIB
If the next command fails, then gcc is missing, install it by doing “apt-get install build-essential”)
sudo make install
1.3 Install TA-LIB Python Wrapper
Install TA-Lib Python Wrapper via pip (or pip3):
pip install ta-lib
Try to import talib in your Python application:
If you get an error like below:
ImportError: libta_lib.so.0: cannot open shared object file: No such file or directory
You will need to do the following additional steps:
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH or for a permanent solution, you’ll have to add /usr/local/lib to /etc/ld.so.conf as root then run /sbin/ldconfig (also as root).