stefan-jansen / machine-learning-for-trading

Code for Machine Learning for Algorithmic Trading, 2nd edition.
https://ml4trading.io
12.57k stars 4.03k forks source link

facing error while installing ta-lib #297

Closed ishikabansal77 closed 1 year ago

ishikabansal77 commented 1 year ago

!pip install ta-lib==0.4.21

Collecting ta-lib==0.4.21 Downloading TA-Lib-0.4.21.tar.gz (270 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 270.1/270.1 kB 5.6 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from ta-lib==0.4.21) (1.22.4) Building wheels for collected packages: ta-lib error: subprocess-exited-with-error

× python setup.py bdist_wheel 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 (setup.py) ... error ERROR: Failed building wheel for ta-lib Running setup.py clean 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

was not able to install ta-lib

Screenshot 2023-07-21 192532
stefan-jansen commented 1 year ago

You need to install TA-Lib source library, see pre-requisites. See here for macOS and Linux and here for Windows.

stefan-jansen commented 1 year ago

Closing for now due to lack of activity. Feel free to reopen if issue persists.