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
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-Precompiled
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 TA-Lib