Search code examples
pythonvisual-studio-codeanacondata-lib

unable to import TA-Lib python


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 module is present but when I try to check in vscode if the import works it just doesn't. But it does work on anaconda prompt so I don't know what the problem might be here.


Solution

  • From the bottom-left of the VSCode, you can get which python interpreter you have selected.

    enter image description here

    From the picture you have provided, you have installed the talib package in the conda:base environment. So you should select the conda:base environment as the python interpreter.