DEV Community

Michael Staszel
Michael Staszel

Posted on • Originally published at mikestaszel.com on

Install TA-Lib without Homebrew

The only package I ever install using Homebrew is TA-Lib. Everything else I need is already available. TA-Lib isn't updated often and it's easy to install by compiling from source.

This guide will work on macOS 11.1 (Big Sur). It works perfectly on an M1 Mac.

First, download TA-Lib from here.

tar xf ta-lib-0.4.0-src.tar.gz
cd ta-lib
./configure --prefix=/usr/local
make
sudo make install

Enter fullscreen mode Exit fullscreen mode

That's all it takes. The prefix is important. macOS Big Sur doesn't let you modify /usr even when you use sudo.

Installing the Python TA-Lib library should work fine now:

pip install TA-Lib

Enter fullscreen mode Exit fullscreen mode

Top comments (0)