Thanks to @Jill Cheng

Basically the answer is tricky.

a. In the anaconda environment make sure you check the python version

python3 --version

b. Go to https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib and download the suitable package . Since I am using python 3.9.1 and I am using 64 bits window. So I downloaded this file TA_Lib‑0.4.19‑cp39‑cp39‑win_amd64.whl

c. Then I ran python3 -m pip install {filename on b}

python3 -m pip install TA_Lib‑0.4.19‑cp39‑cp39‑win_amd64.whl

d. Check if talib is installed. Run

python3

e. Run the following command

import talib

f. If there is no problem , then you can put in on py file. For an example my py file is example.py

#example.py
import numpy
import talib

close = numpy.random.random(100)
upper, middle, lower = talib.BBANDS(close, matype=MA_Type.T3)
print(middle)

g. You should be able to see middle printed out once you run python3 example.py.

Answer from desh on Stack Overflow
🌐
Reddit
reddit.com › r/learnpython › how do i install ta-lib on windows/vscode
r/learnpython on Reddit: How do I install TA-LIB on windows/vscode
January 13, 2021 -

damn this is the most frustrating thing ever. How do I install TA-LIB on windows/vscode ?

python version 3.8

pip version 20.3.3

OS: 64 bit windows 10

I have installed Anaconda and then cd to my project folder and then I installed TALIB using the following command

pip install TA_Lib-0.4.19-cp38-cp38-win_amd64.whl 

When I run pip freeze on anaconda , TA-LIB can be found and runs without problem. https://i.stack.imgur.com/hU4OT.png

However when I use it on vscode, it seems to be a problem , the interpreter I have tried arethe virtual env and conda interpreter on vscode.

Both keeps showing no module named talib because the module shown here is TA-Lib

https://i.stack.imgur.com/WH3HC.png

Please advise.

Thank you

Discussions

TA-Lib Installation error (Windows 11 64 bit, Python 3.11 64 bit, IDE Pycharm), Visual Studio 2022
Hi Team, I am using Windows 11 64 bit, Python 3.11 64 bit, Ide Pycharm, Visual Studio 2022 I followed instuction given below (please note I have 2022 VS and not 2015) Download and Unzip ta-lib-0.4.... More on github.com
🌐 github.com
5
November 18, 2023
python - hello,any advice for adding TA-Lib - Stack Overflow
Im trying this post..--After much time I solved TA-Lib for windows 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 ... More on stackoverflow.com
🌐 stackoverflow.com
visual studio code - unable to import TA-Lib python - Stack Overflow
I've a problem regarding the installation of TA-Lib, I've followed both the documentation and this tutorial (https://blog.quantinsti.com/install-ta-lib-python/) but both don't seem to work. The mod... More on stackoverflow.com
🌐 stackoverflow.com
No Method list in VSCODE
vscode : pythin IDE : Unfortunately, no matter what I do to get the list of methods in VSCODE, this does not happen. But it exists in Python IDE. Please give me some advice on how to solve this pro... More on github.com
🌐 github.com
29
July 9, 2022
🌐
TA-Lib
ta-lib.org › install
Install - TA-Lib - Technical Analysis Library
C:\ta-lib> "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 C:\ta-lib> mkdir build C:\ta-lib> cd build C:\ta-lib\build> cmake .. C:\ta-lib\build> cmake --build .
🌐
GitHub
github.com › ranaroussi › futuresio-webinars › issues › 1
Installing x64 version of TA-Lib · Issue #1 · ranaroussi/futuresio-webinars
May 3, 2017 - From Windows Start Menu, Start VS2015 x64 Native Tools Command Prompt (An alternative method is documented here: https://msdn.microsoft.com/en-us/library/x4d2c09s.aspx And is summarized below: - Open a Windows Command Prompt - type: cd "C:\Progam Files (x86)\Microsoft Visual Studio 14.0\VC" + ENTER - type: vcvarsall amd64 + ENTER NOTE: if you don't have vcvarsall in the above directory, then you probably don't have Visual C++ installed in Visual Studio Community 2015. To install it: - Double click on the VS install file (i.e. vs_community_ENU), - Choose modify in the bottom left, - Expand the Programming language tree, and check Visual C++, - Click on Next and then Update ) Move to C:\ta-lib\c\make\cdr\win32\msvc ·
🌐
GitHub
gist.github.com › mdalvi › e08115381992e42b43cad861dfe417d2
ta-lib 64-bit Installation on Windows 10 · GitHub
Download and Unzip ta-lib-0.4.0-msvc.zip Move the Unzipped Folder ta-lib to C: Download and Install Visual Studio Community 2019 Remember to Select [Visual C++] Feature, tick the box 'desktop development with c++' under desktop/mobile section Build TA-Lib Library From Windows Start Menu, Start [x64 Native Tools Command Prompt for VS 2019] Move to C:\ta-lib\c\make\cdr\win32\msvc Build the Library nmake Then python -m pip install TA-Lib
🌐
Medium
marcelo-delmondes-lima.medium.com › solving-talib-compatibility-issues-in-vscode-with-python-and-anaconda-and-prepare-the-enviroment-do-865c26d5cd06
Problems installing talib and preparing environment for developing binance APIs in VScode with conda — fixed - Marcelo Delmondes de Lima - Medium
January 6, 2022 - pip install ta-lib · # Install dependencies in C and update if necessary · https://visualstudio.microsoft.com/pt-br/thank-you-downloading-visual-studio/?sku=BuildTools&rel=16 · conda install -c conda-forge matplotlib · #install TA_Lib-0.4.20-cp39-cp39-win_amd64.whl ·
Find elsewhere
🌐
GitHub
github.com › afnhsn › TA-Lib_x64
GitHub - afnhsn/TA-Lib_x64: TA-Lib x64; 64-bit ta-lib; Download; · GitHub
1. Download and Unzip ta-lib-0.4.0-msvc.zip 2. Move the Unzipped Folder ta-lib to C:\ 3. Download and Install Visual Studio Community 2015 Remember to Select [Visual C++] Feature 4. 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 5.
Starred by 85 users
Forked by 21 users
🌐
GitHub
github.com › TA-Lib › ta-lib-python
GitHub - TA-Lib/ta-lib-python: Python wrapper for TA-Lib (http://ta-lib.org/). · GitHub
If you want to use numpy>=2, then you should use ta-lib>=0.5. If you have trouble getting the code autocompletions to work in Visual Studio Code, a suggestion was made to look for the Python extension settings, and an option for Language Server, and change it from Default (which means Pylance ...
Starred by 11.9K users
Forked by 2K users
Languages   Cython 70.1% | Python 29.2%
🌐
GitHub
github.com › TA-Lib › ta-lib › releases
Releases · TA-Lib/ta-lib
Alternatively, you can modify your code to #include <ta-lib/ta_libc.h> instead of #include <ta_libc.h> This change is for namespace best-practice for when TA-Lib is installed at the system level. Moving forward, autotools and CMake are the only two supported build systems. Consequently: All xcode/Visual Studio projects (.sln) are not maintained anymore.
Author   TA-Lib
🌐
GitHub
github.com › TA-Lib › ta-lib-python › issues › 623
TA-Lib Installation error (Windows 11 64 bit, Python 3.11 64 bit, IDE Pycharm), Visual Studio 2022 · Issue #623 · TA-Lib/ta-lib-python
November 18, 2023 - Hi Team, I am using Windows 11 64 bit, Python 3.11 64 bit, Ide Pycharm, Visual Studio 2022 I followed instuction given below (please note I have 2022 VS and not 2015) Download and Unzip ta-lib-0.4.0-msvc.zip Move the Unzipped Folder ta-l...
Author   kapiltulsan
🌐
PyPI
pypi.org › project › TA-Lib
TA-Lib · PyPI
If you want to use numpy>=2, then you should use ta-lib>=0.5. If you have trouble getting the code autocompletions to work in Visual Studio Code, a suggestion was made to look for the Python extension settings, and an option for Language Server, and change it from Default (which means Pylance if it is installed, Jedi otherwise), to manually set Jedi and the completions should work.
      » pip install TA-Lib
    
Published   Oct 20, 2025
Version   0.6.8
🌐
Stack Overflow
stackoverflow.com › questions › 66400173 › hello-any-advice-for-adding-ta-lib
python - hello,any advice for adding TA-Lib - Stack Overflow
Im trying this post..--After much time I solved TA-Lib for windows 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 4.
🌐
Stack Overflow
stackoverflow.com › questions › 70009064 › unable-to-import-ta-lib-python
visual studio code - unable to import TA-Lib python - Stack Overflow
can you create a virtual environment and install TA LIB inside the virtual environment and open the folder in vs code and run it.
🌐
GitHub
github.com › mrjbq7 › ta-lib › issues › 529
No Method list in VSCODE · Issue #529 · TA-Lib/ta-lib-python
July 9, 2022 - vscode : pythin IDE : Unfortunately, no matter what I do to get the list of methods in VSCODE, this does not happen. But it exists in Python IDE. Please give me some advice on how to solve this pro...
Author   khazaee
🌐
Medium
medium.com › findingalpha › error-free-guide-to-install-ta-lib-in-jupyter-and-kaggle-notebook-b46abadee437
Error free guide to install TA-Lib in Jupyter and Kaggle Notebook | by Amritya Singh | FindingAlpha | Medium
June 3, 2023 - By default it’ll open in the Visual Studio installation directory. Let’s change the working directory now and build the TA-Lib using C++ compiler. Type these commands and you’ll be ready to go. ... After the library is successfully built, you need to launch the Anaconda Navigator and open CMD.exe Prompt, and install TA-Lib using pip. ... Rejoice! You have successfully installed TA-Lib. Things are much simpler if you are using Kaggle Notebook. Just run the following code ...
🌐
NuGet
nuget.org › packages › TA-Lib
NuGet Gallery | TA-Lib 0.5.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package. <PackageReference Include="TA-Lib" Version="0.5.0.3" />
🌐
GitHub
github.com › microsoft › vscode-discussions › discussions › 774
How to add .lib files in visual studio code with gcc compiler toolchain · microsoft/vscode-discussions · Discussion #774
June 15, 2024 - If the above solutions don't resolve the issue, it might be beneficial to provide more detailed information about your project setup, how the .lib file was generated, and the complete error message(s) you're encountering. Beta Was this translation helpful? Give feedback. ... There was an error while loading. Please reload this page. Something went wrong. There was an error while loading. Please reload this page. ... First, generate the .o file by modifying the task json configuration "command " "args" as follows: “-fdiagnostics-color=always”, “-c”, “${file}”, “-o”, “${fileDirname}${fileBasenameNoExtension}.o”
Author   microsoft
🌐
Reddit
reddit.com › r/visualstudio › ta-lib installing difficulties
r/VisualStudio on Reddit: Ta-Lib installing difficulties
May 21, 2021 - warnings.warn('Cannot find ta-lib library, installation may fail.') ... C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\ta-lib\c\include -Ic:\users\phil\rsibot\lib\site-packages\numpy\core\include -Ic:\users\phil\rsibot\include -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\include -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.1520.0_x64__qbz5n2kfra8p0\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Bui
🌐
TA-Lib
ta-lib.org › api
C/C++ API - TA-Lib - Technical Analysis Library
In your source code, add #include "ta_libc.h" and link to the library named "ta-lib". You may need to add TA-Lib to your compiler's search path.