Skip to content

Instantly share code, notes, and snippets.

@mdalvi
Last active May 10, 2024 07:20
Show Gist options
  • Save mdalvi/e08115381992e42b43cad861dfe417d2 to your computer and use it in GitHub Desktop.
Save mdalvi/e08115381992e42b43cad861dfe417d2 to your computer and use it in GitHub Desktop.
ta-lib 64-bit Installation on Windows 10

Here are the instructions to build the 64-bit ta-lib.

Install TA-Lib C Library on Windows 10

  • Download and Unzip ta-lib-0.4.0-msvc.zip
  • Move the Unzipped Folder ta-lib to C:\
  • Download and Install Visual Studio Community 2015
  • Remember to Select [Visual C++] Feature
  • Build TA-Lib Library
  • From Windows Start Menu, Start [VS2015 x64 Native Tools Command Prompt]
  • Move to C:\ta-lib\c\make\cdr\win32\msvc
  • Build the Library nmake
  • Then pip3 install ta-lib
@celltronic01
Copy link

does anyone have the 64 bit file?? care to pls share? I can't find anything on the net. Searching for 2 days

@fuinyroot
Copy link

For anyone who's having this trouble, for me re-installing my VS2019 community & re-extracting the files fixed the issue (I had the problem with my already installed VS2019 - manually installing build tools did not work). When installing VS2019, make sure you tick the box 'desktop development with c++' under desktop/mobile section. And then follow the instructions using x64 Native Tools Command Prompt for VS 2019.

This re-extracting the files worked for me. As of today I am on

  • Windows 11
Device name	WIN64G
Processor	AMD Ryzen 7 5700U with Radeon Graphics            1.80 GHz
Installed RAM	64.0 GB (63.3 GB usable)
System type	64-bit operating system, x64-based processor
Collecting ta-lib
  Using cached TA-Lib-0.4.28.tar.gz (357 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in c:\users\myuser\tools\python3.11\lib\site-packages (from ta-lib) (1.26.4)
Building wheels for collected packages: ta-lib
  Building wheel for ta-lib (pyproject.toml) ... done
  Created wheel for ta-lib: filename=TA_Lib-0.4.28-cp311-cp311-win_amd64.whl size=549242 sha256=2b95510589c7276096ecb03b153d67af241a4b68fc4f26b6428d66175d6a4a18
  Stored in directory: c:\users\myuser\appdata\local\pip\cache\wheels\d9\de\ed\b1158e807eaa66f5ad26b71bc21c664483665cb02889b641eb
Successfully built ta-lib
Installing collected packages: ta-lib
Successfully installed ta-lib-0.4.28

@MiladZarour
Copy link

@fuinyroot
I did the exact same as you did :

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for TA-lib Failed to build TA-lib ERROR: Could not build wheels for TA-lib, which is required to install pyproject.toml-based projects

not sure what it went wrong
now more than 3 hours trying to install pip install TA-lib , nothing is working...

@fuinyroot
Copy link

@fuinyroot I did the exact same as you did :

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for TA-lib Failed to build TA-lib ERROR: Could not build wheels for TA-lib, which is required to install pyproject.toml-based projects

not sure what it went wrong now more than 3 hours trying to install pip install TA-lib , nothing is working...

I did not see the error above on my computer, well tried to search as bellow, hope it helps

@B1g-Tuna
Copy link

Thank you to everyone that commented here. Grateful to finally get it installed properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment