Running setup.py install for TA-Lib ... error
error: subprocess-exited-with-error
× Running setup.py install for TA-Lib did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
C:\Users\Administrator\AppData\Local\Temp\pip-install-z60upn\ta-lib_40a7bc05e4ff41ce993726554414ce08\setup.py:77: UserWarning: Cannot find ta-lib library, installation may fail.
warnings.warn('Cannot find ta-lib library, installation may fail.')
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\talib
copying talib\abstract.py -> build\lib.win-amd64-3.9\talib
copying talib\deprecated.py -> build\lib.win-amd64-3.9\talib
copying talib\stream.py -> build\lib.win-amd64-3.9\talib
copying talib\test_abstract.py -> build\lib.win-amd64-3.9\talib
copying talib\test_data.py -> build\lib.win-amd64-3.9\talib
copying talib\test_func.py -> build\lib.win-amd64-3.9\talib
copying talib\test_pandas.py -> build\lib.win-amd64-3.9\talib
copying talib\test_polars.py -> build\lib.win-amd64-3.9\talib
copying talib\test_stream.py -> build\lib.win-amd64-3.9\talib
copying talib\init__.py -> build\lib.win-amd64-3.9\talib
running build_ext
building 'talib._ta_lib' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> TA-Lib
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
C:\vnpy-3.1.0\examples\veighna_trader>pip install TA-Lib 0.4.24
Collecting TA-Lib
Using cached TA-Lib-0.4.24.tar.gz (269 kB)
Preparing metadata (setup.py) ... done
ERROR: Could not find a version that satisfies the requirement 0.4.24 (from versions: none)
ERROR: No matching distribution found for 0.4.24