我正在尝试在 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/
我该如何解决这个问题?
安装说明 来自他们的 github 自述文件 表明在 Macos 上您需要以下内容:
brew install ta-lib
C:\Users\user>pip install talib-binary 错误:找不到满足 talib-binary 要求的版本(来自版本:无) 错误:找不到 talib-binary 的匹配发行版