Skip to content

Instantly share code, notes, and snippets.

@rjurney
Created September 7, 2020 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjurney/586bc093bc59f5c3e3c5e375bf5bfd8b to your computer and use it in GitHub Desktop.
Save rjurney/586bc093bc59f5c3e3c5e375bf5bfd8b to your computer and use it in GitHub Desktop.
A Colab cell to build and install TA Lib and its Python interface TA-Lib
# download TA-Lib
!wget -q http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz 2>&1 > /dev/null
!tar xvzf ta-lib-0.4.0-src.tar.gz 2>&1 > /dev/null
import os
os.chdir('ta-lib') # Can't use !cd in co-lab
!./configure --prefix=/usr 2>&1 > /dev/null
!make 2>&1 > /dev/null
!make install 2>&1 > /dev/null
os.chdir('../')
!pip install TA-Lib 2>&1 > /dev/null
import talib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment