Category: Python

Installing TA-Lib on macOS Without Using Homebrew

If you’re like me and prefer to keep your system as clean as possible, you might avoid Homebrew unless absolutely necessary. TA-Lib is one of the few exceptions—until now. Fortunately, compiling TA-Lib from source is simple and doesn’t require Homebrew at all.

This step-by-step guide has been tested on macOS 11.1 Big Sur and runs flawlessly on Apple Silicon (M1) machines.

Step 1: Download the Source Code

Begin by downloading the official source package for TA-Lib from the Here. Once the archive is downloaded, extract it and navigate into the directory:

tar xf ta-lib-0.4.0-src.tar.gz
cd ta-lib

Step 2: Compile and Install

Now compile and install the library using the following commands:

./configure --prefix=/usr/local
make
sudo make install

Step 3: Install the Python Wrapper

With the native library in place, you can now install the Python bindings:

pip install TA-Lib

That’s it! You’ve installed TA-Lib without touching Homebrew.

Learn More

Building a Fundamental API with Flask and Python: A Step-by-Step Guide

Python Flask stands out as a favored platform to craft web applications and APIs using Python. Its appeal lies in offering developers a swift and uncomplicated approach to fabricating RESTful APIs that interlink with various software applications. Flask holds a featherweight stature and demands minimal configuration, rendering it an optimal selection for constructing modest to moderately-sized APIs. Hence, Flask emerges as the prime option for programmers seeking to erect resilient and expandable APIs within the Python ecosystem. This instance will elucidate the process of generating a straightforward REST API via a Flask tutorial. (more…)

Learn More