TA-Lib / ta-lib-python

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

installation error on MacOS #620

Closed lca-123 closed 11 months ago

lca-123 commented 11 months ago

I install talib on my M2 MacBook, but I have the following error.

include "ta-lib/ta_defs.h"

           ^~~~~~~~~~~~~~~~~~
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1
  [end of output]

please tell me how to handle this problem. thx.

mrjbq7 commented 11 months ago

If you are building for the same architecture (like aarch64 which is apple silicon) and your brew matches your Python, then it is just:$ brew install ta-lib$ python3 -m pip install ta-libIf you are trying to build for Rosetta on the mac, which targets Intel libraries or Intel python, then it’s typically a problem not having everything match architecture. On Oct 27, 2023, at 2:53 AM, lca @.***> wrote: I install talib on my M2 MacBook, but I have the following error.

include "ta-lib/ta_defs.h"

^~~~~~ 1 error generated. error: command '/usr/bin/clang' failed with exit code 1 [end of output] please tell me how to handle this problem. thx.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

lca-123 commented 11 months ago

I have solve this problem. But thank you all the same.

mrjbq7 commented 11 months ago

What was the solution to your problem?

If you solved it, why is this issue still open?