I am assuming that you have already installed Miniconda on your machine and configured the right environment. For me, my environment has always been py3k so I will have to activate it first by doing
source activate py3k
Now let’s install TA-LIB first.
tar -xzf ta-lib-0.4.0-src.tar.gz or sudo tar -xzf ta-lib-0.4.0-src.tar.gz
sudo ./configure (if gcc is missing, install it by doing “apt-get install build-essential”)
sudo make install
Now let’s install TA-LIB python wrapper
At this point, it seems that everything is done. You can try logging into your python environment (with the right environment) and try to import talib by typing
and see if it throws an error. If you get an error like below:
Traceback (most recent call last): File “”, line 1, in ImportError: libta_lib.so.0: cannot open shared object file: No such file or directory
You will need to do the additional steps below.
or for a permanent solution, have to add /usr/local/lib to /etc/ld.so.conf as root then run /sbin/ldconfig (also as root)