错误:pip install TA-Lib 上的命令“clang”失败,退出状态为 1

问题描述 投票:0回答:2

我正在尝试在 Mac Sierra 中安装 TA-Lib:

sudo pip install TA-Lib

但我收到此错误:

 error: command 'clang' failed with exit status 1

    ----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-bqV3xq/TA-Lib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-5HBbJo-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-bqV3xq/TA-Lib/

我该如何解决这个问题?

python macos
2个回答
5
投票

安装说明 来自他们的 github 自述文件 表明在 Macos 上您需要以下内容:

brew install ta-lib

0
投票

C:\Users\user>pip install talib-binary 错误:找不到满足 talib-binary 要求的版本(来自版本:无) 错误:找不到 talib-binary 的匹配发行版

© www.soinside.com 2019 - 2024. All rights reserved.