[Python] Installation of TA-lib to Google Colab and VSC Error. "Could not build wheels for...

Discussão em 'Python' iniciado por Stack, Fevereiro 2, 2025.

  1. Stack

    Stack Membro Participativo

    1. Download working well: !wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz !tar -xzvf ta-lib-0.4.0-src.tar.gz %cd ta-lib !./configure --prefix=/usr !make !make install

    2. The installation has an error. Fails to install. It has been working well.

    !pip install TA-Lib

    Collecting TA-Lib Using cached ta_lib-0.6.0.tar.gz (371 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: setuptools in /usr/local/lib/python3.10/dist-packages (from TA-Lib) (75.1.0) Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from TA-Lib) (1.26.4) Building wheels for collected packages: TA-Lib error: subprocess-exited-with-error

    × Building wheel for TA-Lib (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> See above for output.

    note: This error originates from a subprocess, and is likely not a problem with pip. Building wheel for TA-Lib (pyproject.toml) ... error ERROR: Failed building wheel for TA-Lib Failed to build TA-Lib ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (TA-Lib)

    How do I go about proper installation?

    Please note:

    Alternatively, This is also not working:

    !wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz !tar -xzvf ta-lib-0.4.0-src.tar.gz %cd ta-lib !./configure --prefix=/usr !make !make install %cd .. !pip install TA-Lib

    I also tried to install it in VSC, but still had the same error:

    note: This error originates from a subprocess, and is likely not a problem with pip. h "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ 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 pylem with pip.project.toml-based projects

    Continue reading...

Compartilhe esta Página