Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: Could not build wheels for ta-lib, which is required to install pyproject.toml-based projects

Tags:

python

pip

ta-lib

I'm getting below error, while pip installing ta-lib. I used command :

!pip install ta-lib

Please provide me solution.

    Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting ta-lib
  Using cached TA-Lib-0.4.25.tar.gz (271 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /usr/local/lib/python3.8/dist-packages (from ta-lib) (1.21.6)
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: Could not build wheels for ta-lib, which is required to install pyproject.toml-based projects

I tried following commands :

pip install --upgrade pip setuptools wheel
pip install pep517
!pip3 install --upgrade pip
!pip install pyproject-toml
pip install TA_Lib‑0.4.10‑cp35‑cp35m‑win_amd64.whl
!pip install ta-lib
like image 918
Parjanya Chopkar Avatar asked Dec 09 '25 11:12

Parjanya Chopkar


1 Answers

Typing the following command in the Anaconda Command Prompt (exactly like this) fixed it for me:

conda install -c conda-forge ta-lib

Hopefully this will save others' time as well.

like image 68
Nathan Thompo Avatar answered Dec 12 '25 00:12

Nathan Thompo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!