How to install TA-LIB in Python

Rohan Kumar
1 min readApr 13, 2021

Here, I will help to install TA-LIB on your PC/Laptop. It should be easy going for y’all!

Install TA-LIB on Windows PC

Ta-lib installation is different from other python libraries as it is not available to install directly using pip install. officially available.

First, we need to visit the link and download the whl file of TA-LIB according to our Python version, plus check the System type of you PC/Laptop.

After that, we can install it using pip install as given below.

pip install <filename.whl>

Install TA-LIB on MacOS

You can directly type this command, and it you will be successful in installing TA-LIB

$ brew install ta-lib

Install TA-LIB on Google Colab

This a mutli step process, but you will be able to install it in few second.

url = ‘https://launchpad.net/~mario-mariomedina/+archive/ubuntu/talib/+files'!wget $url/libta-lib0_0.4.0-oneiric1_amd64.deb -qO libta.deb!wget $url/ta-lib0-dev_0.4.0-oneiric1_amd64.deb -qO ta.deb!dpkg -i libta.deb ta.deb!pip install ta-libimport talib

Install TA-LIB on Linux

Download ta-lib-0.4.0-src.tar.gz and:

$ untar and cd
$ ./configure --prefix=/usr
$ make
$ sudo make install

If you build TA-Lib using make -jX it will fail but that's OK! Simply rerun make -jX followed by [sudo] make install.

Thank you for reading!

--

--

Rohan Kumar

Poet | Story writer | Blogger "I took a walk in the woods and came out taller than the trees."~ Henry David Thorea