View on GitHub


Python wrapper for TA-Lib (

Download this project as a .zip file Download this project as a tar.gz file


You can install from PyPI:

$ pip install TA-Lib

Or checkout the sources and run yourself:

$ python install

Troubleshooting Install Errors

func.c:256:28: fatal error: ta-lib/ta_libc.h: No such file or directory
compilation terminated.

If you get build errors like this, it typically means that it can't find the underlying TA-Lib library and needs to be installed:


To use TA-Lib for python, you need to have the TA-Lib already installed:

Mac OS X

$ brew install ta-lib


Download and unzip to C:\ta-lib


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.

Documentation Index Next: Using the Function API