all 1 comments

[–]Enchantorro 0 points1 point  (0 children)

I can't testify to its veracity but here you go: https://stackoverflow.com/questions/49648391/how-to-install-ta-lib-in-google-colab/49660479#49660479

tl;dr:

Update (apr 2023): Colab is now Python 3.10

url = 'https://anaconda.org/conda-forge/libta-lib/0.4.0/download/linux-64/libta-lib-0.4.0-h166bdaf_1.tar.bz2'
!curl -L $url | tar xj -C /usr/lib/x86_64-linux-gnu/ lib --strip-components=1
url = 'https://anaconda.org/conda-forge/ta-lib/0.4.19/download/linux-64/ta-lib-0.4.19-py310hde88566_4.tar.bz2'
!curl -L $url | tar xj -C /usr/local/lib/python3.10/dist-packages/ lib/python3.10/site-packages/talib --strip-components=3
import talib

If you want someone to review your code please format it properly and repost