TA-Lib / ta-lib-python

Python wrapper for TA-Lib (http://ta-lib.org/).
http://ta-lib.github.io/ta-lib-python
Other
9.49k stars 1.74k forks source link

fatal error: 'ta-lib/ta_defs.h' file not found #508

Closed kvyaswanth closed 2 years ago

kvyaswanth commented 2 years ago

pip install TA-Lib doesn't work, MacOS Big Sur, Intel

talib/_ta_lib.c:682:10: fatal error: 'ta-lib/ta_defs.h' file not found

include "ta-lib/ta_defs.h"

         ^~~~~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
----------------------------------------

ERROR: Command errored out with exit status 1

complete output on pastebin

mrjbq7 commented 2 years ago

Follow the installation instructions in the README.

For your macOS it requires:

$ brew install ta-lib

To install the C library this module wraps.

On Mar 16, 2022, at 10:57 PM, kvyaswanth @.***> wrote:

 MacOS Big Sur, Intel

talib/_ta_lib.c:682:10: fatal error: 'ta-lib/ta_defs.h' file not found

include "ta-lib/ta_defs.h"

^~~~~~ 1 error generated. error: command '/usr/bin/clang' failed with exit code 1

ERROR: Command errored out with exit status 1

complete output on pastebin

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you are subscribed to this thread.

kvyaswanth commented 2 years ago

thank you, that works

idreamsfy commented 11 months ago

yes, it's working for me on sonoma