Good, it works for the installed of Numpy and Pandas dependency.
But when trying to install Ta-Lib this is the output:
But when trying to install Ta-Lib this is the output:
Output:(.venv) sh-5.1$ pip install TA-Lib
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 ./.venv/lib/python3.10/site-packages (from TA-Lib) (1.24.2)
Building wheels for collected packages: TA-Lib
Error: Building wheel for TA-Lib (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for TA-Lib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [27 lines of output]
<string>:77: UserWarning: Cannot find ta-lib library, installation may fail. [error]
[/output] running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/talib
copying talib/test_stream.py -> build/lib.linux-x86_64-cpython-310/talib
copying talib/test_polars.py -> build/lib.linux-x86_64-cpython-310/talib
copying talib/test_pandas.py -> build/lib.linux-x86_64-cpython-310/talib
copying talib/test_func.py -> build/lib.linux-x86_64-cpython-310/talib
copying talib/test_data.py -> build/lib.linux-x86_64-cpython-310/talib
copying talib/test_abstract.py -> build/lib.linux-x86_64-cpython-310/talib
copying talib/stream.py -> build/lib.linux-x86_64-cpython-310/talib
copying talib/deprecated.py -> build/lib.linux-x86_64-cpython-310/talib
copying talib/abstract.py -> build/lib.linux-x86_64-cpython-310/talib
copying talib/__init__.py -> build/lib.linux-x86_64-cpython-310/talib
running build_ext
building 'talib._ta_lib' extension
creating build/temp.linux-x86_64-cpython-310
creating build/temp.linux-x86_64-cpython-310/talib
x86_64-unknown-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -fPIC -I/usr/include -I/usr/local/include -I/opt/include -I/opt/local/include -I/opt/homebrew/include -I/opt/homebrew/opt/ta-lib/include -I/tmp/pip-build-env-wicutnul/normal/lib/python3.10/site-packages/numpy/core/include -I/home/fmc-crypto/Desktop/Project/.venv/include -I/usr/include/python3.10 -I/usr/include/x86_64-linux-gnu/python3.10 -c talib/_ta_lib.c -o build/temp.linux-x86_64-cpython-310/talib/_ta_lib.o [/output]
[error] talib/_ta_lib.c:747:10: fatal error: ta-lib/ta_defs.h: No such file or directory
747 | #include "ta-lib/ta_defs.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
error: command '/usr/bin/x86_64-unknown-linux-gnu-gcc' failed with exit code 1
[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
(.venv) sh-5.1$ sudo apt-get -y install gcc build-essential
sh: sudo: command not found