TA-Lib on Google Colab

I am working on Google Colab and trying to install TA-Lib, however fails with Error Message " note: This error originates from a subprocess, and is likely not a problem with pip.
Building wheel for TA-Lib (pyproject.toml) … error
ERROR: Failed building wheel for TA-Lib
Failed to build TA-Lib "

Please can you help to resolve issue on Google Colab. I have seen solutions provided on Jupyter notebook (Local Env) but not on google colab

Hi Rakesh,

You can try this:

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
!pip install conda-package-handling
!wget https://anaconda.org/conda-forge/ta-lib/0.5.1/download/linux-64/ta-lib-0.5.1-py311h9ecbd09_0.conda
!cph x ta-lib-0.5.1-py311h9ecbd09_0.conda
!mv ./ta-lib-0.5.1-py311h9ecbd09_0/lib/python3.11/site-packages/talib /usr/local/lib/python3.11/dist-packages/
import talib

This should work on Google Colab.