TA-Lib failed to install

Collecting ta-lib==0.4.20
  Using cached TA-Lib-0.4.20.tar.gz (266 kB)
Requirement already satisfied: numpy in /opt/python/envs/default/lib/python3.8/site-packages (from ta-lib==0.4.20) (1.19.5)
Building wheels for collected packages: ta-lib
  Building wheel for ta-lib (setup.py): started
  Building wheel for ta-lib (setup.py): finished with status 'error'
  Running setup.py clean for ta-lib
Failed to build ta-lib
Installing collected packages: ta-lib
    Running setup.py install for ta-lib: started
    Running setup.py install for ta-lib: finished with status 'error'


it requires gcc compiler to build, you can install it using the following commands:

!sudo apt update
!sudo apt install build-essential -y

Please note, that this python package is a wrapper and you will need to install TA-Lib library itself separately.

1 Like