Fix 'pip install ta-lib' error on Windows!

If you’re pulling your hair out trying to install ta-lib on Windows using pip, you’re in the right place.

Installing TA-Lib on Windows using pip install ta-lib often leads to frustrating errors like:

error: subprocess-exited-with-error
Failed building wheel for TA-Lib

These errors occur because TA-Lib is a C/C++ library, and building it from source requires a compatible compiler and the underlying TA-Lib binaries.

This common issue trips up a lot of people, but luckily, there’s a very simple solution that doesn’t involve compiling anything or messing with C++ build tools — use pre-built wheel files.

Below is a quick summary to get TA-Lib up and running:

TL;DR

  1. Download the precompiled wheel file
    Make sure to download the wheel file that matches:

    Your Python version (e.g., cp311 for Python 3.11)
    Your Windows architecture (32-bit or 64-bit)

  2. Navigate to the folder where you downloaded the file
    cd C:\Users\YourName\Downloads
  3. Install the wheel file using pip
    pip install ta_lib‑0.6.3‑cp311‑cp311‑win_amd64.whl

If you’re new to this and want a step-by-step walkthrough, no worries — let’s break it down in more detail.

Video Guide

Sometimes watching is easier than reading. Here’s a full video guide that walks you through the exact process

Step-by-Step Tutorial

Step 1: Check Your Python Version

Open a command prompt and run:

python --version

Note your Python version (e.g., 3.11), as you’ll need it to download the correct wheel file.

Step 2: Download the Correct Wheel File

Go to the precompiled TA-Lib wheel file repository:
https://github.com/cgohlke/talib-build/releases

Example:
If you’re using Python 3.11 on a 64-bit system, download:

ta_lib‑0.6.3‑cp311‑cp311‑win_amd64.whl

Step 3: Install the Wheel

Open your command prompt and navigate to the folder where the downloaded .whl file is located. For example:

cd C:\Users\YourName\Downloads

Now run the install command (adjust the filename to match the one you downloaded):

pip install ta_lib‑0.6.3‑cp311‑cp311‑win_amd64.whl

Tip: You can type  pip install ta and press Tab to autocomplete the file name.

Step 4: Verify the Installation

In Python, run the following to confirm everything is working:

import talib
print(talib.__version__)

If no errors appear and the version is printed, congrats — TA-Lib is installed successfully!

Still stuck? Drop a question in the comments of this YouTube video — the community is super helpful!

Happy trading! 📈📊