TA-Lib / ta-lib-python

Python wrapper for TA-Lib (http://ta-lib.org/).
http://ta-lib.github.io/ta-lib-python
Other
9.78k stars 1.77k forks source link

ValueError: Cannot import module talib. Check if talib is installed correctly #667

Closed tom634 closed 4 months ago

tom634 commented 4 months ago

Why can't I use talib? I installed it via: $ python -m pip install TA-Lib no success: error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX86\x64\link.exe' failed with exit code 1120 [end of output]

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

then via native tools prompt winth nmake: obraz also no success. What else can I try?

mrjbq7 commented 4 months ago

Install the underlying TA-Lib C library (https://github.com/ta-lib/ta-lib-python?tab=readme-ov-file#windows) and then install this library (https://github.com/ta-lib/ta-lib-python?tab=readme-ov-file#installation).