First of all check your Python version.
Then go to this link to download the TA-LIB library that corresponds to your Python version:
https://github.com/cgohlke/talib-build/releases
Then install Git Bash.
Then, in the directory where you downloaded the TA-Lib library, right-click, select Git Bash, which will open a terminal in that same directory. On the terminal, use pip install targetting the TA-Lib library (the full file name with extension). For example:
Copypip install TA_Lib-0.4.28-cp312-cp312-win_amd64.whl
I am using
- 3.12.2 version Python
- 64-bit Windows
- TA_Lib-0.4.28-cp312-cp312-win_amd64.whl
First of all check your Python version.
Then go to this link to download the TA-LIB library that corresponds to your Python version:
https://github.com/cgohlke/talib-build/releases
Then install Git Bash.
Then, in the directory where you downloaded the TA-Lib library, right-click, select Git Bash, which will open a terminal in that same directory. On the terminal, use pip install targetting the TA-Lib library (the full file name with extension). For example:
Copypip install TA_Lib-0.4.28-cp312-cp312-win_amd64.whl
I am using
- 3.12.2 version Python
- 64-bit Windows
- TA_Lib-0.4.28-cp312-cp312-win_amd64.whl
Get the latest zipfile for Python 3.12 from here:
https://github.com/TA-Lib/ta-lib-python/issues/127#issuecomment-1793716236
Extract zipfile to C:\, like this C:\ta-lib
Download and install Visual C++ build tools from:
https://visualstudio.microsoft.com/visual-cpp-build-tools/
Finally install:
Copypip install ta-lib
The only solution that worked for me is this: https://github.com/afnhsn/TA-Lib_x64
- Download "ta-lib x64.zip" from github above.
Extract zip file to
C:\, so it looks like thisC:\ta-lib - Download Visual C++ build tools 2022: https://aka.ms/vs/17/release/vs_buildtools.exe
- Install Visual C++ build tools: https://stackoverflow.com/a/54136652/10997732
- Install ta-lib:
pip install ta-lib
It should be noted that installing a wheel made for an older Python version (e.g. 3.10), but the correct architecture (e.g. win64) is probably going to work for you. This can be done using pip install <path to .whl file>. The main downside of this approach is that the prebuilt wheel you're using could be somewhat outdated.
Here's what I did to build it myself on a "clean" system:
Install the following 3 components from the VS2022 installer:

Follow the instructions for building using
nmakequoted in the OP. [src]pip install TA-Lib
If you don't want to do any of that, I've uploaded my built wheel here.
» pip install TA-Lib
pip3 install wheel
Then you need to download relevant TA-Lib districution from here https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib, probably TA_Lib‑0.4.24‑cp39‑cp39‑win_amd64.whl,
then
pip3 install TA_Lib‑0.4.24‑cp39‑cp39‑win_amd64.whl
Solution for MAC OS
Install Homebrew from APP STORE Restart your PC
On terminal export TA_INCLUDE_PATH="$(brew --prefix ta-lib)/include" export TA_LIBRARY_PATH="$(brew --prefix ta-lib)/lib"
on terminal type and execute brew install talib (or) arch -arm64 brew install ta-lib (For M1) Restart your PC again
check installation by typing >>Import talib on python3 terminal check version >>talib.version
5.if not displayed try once reinstalling using pip install ta-lib
» pip install triton-windows
Typing the following command in the Anaconda Command Prompt (exactly like this) fixed it for me:
conda install -c conda-forge ta-lib
Hopefully this will save others' time as well.
In Ubuntu 22.04 I solved this issue by following these steps below;
(BTW it is also mentioned in the official page here )
- download it directly via bash via:
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz -O ~/talib
OR manually download ta-lib-0.4.0-src.tar.gz and put it to the directory where you are planning to install talib, lets' say "~/talib". open bash and skip to the directory that you just put the downloaded filecd ~/taliband; tar -xzf ta-lib-0.4.0-src.tar.gzcd ta-lib/./configure --prefix=/usr<-- change it you do not have access, e.g. on a servermakesudo make install- add necessary directories to the path. To do that;
Edit .bashrc in your home directory and add the following line: please remember to change PREFIX with your path to talib (~/talib/ta-lib/)
export TA_LIBRARY_PATH=$PREFIX/lib
export TA_INCLUDE_PATH=$PREFIX/include
pip install TA-Lib
Then it was installed successfully. Good luck!