vendredi 26 août 2022

How to install TA-Lib on Ubuntu (and on GitPod.io...) ?

Here is the link to the documentation that helped me a lot, and thanks to it TA-Lib was installed in less than 5 minutes (I was installing FreqTrade and an error about the ta-lib installation were shown) :

https://blog.quantinsti.com/install-ta-lib-python/

Here I write the lines that helped me (in case the link above were suppressed) :


sudo apt-get -y install gcc build-essential


wget -O inst_conda.sh "https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh" \

  && /bin/bash inst_conda.sh -b \

  && rm inst_conda.sh \

  && ./anaconda3/bin/conda init \

  && source ~/.bashrc \

  && conda create -n quantra python=3.6.8 -y \

  && conda activate quantra


wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz \

  && sudo tar -xzf ta-lib-0.4.0-src.tar.gz \

  && sudo rm ta-lib-0.4.0-src.tar.gz \

  && cd ta-lib/ \

  && sudo ./configure --prefix=/usr \

  && sudo make \

  && sudo make install \

  && cd ~ \

  && sudo rm -rf ta-lib/ \

  && pip install ta-lib