美文网首页
talib 中文文档(二):talib安装

talib 中文文档(二):talib安装

作者: HuaRongSAO | 来源:发表于2017-07-28 10:36 被阅读0次

    原文地址: TA-LIB document
    翻译地址:https://github.com/HuaRongSAO/talib-document

    安装

    使用pip安装 PyPI:

    $ pip install TA-Lib
    

    Or checkout the sources and run setup.py yourself:

    $ python setup.py install
    

    如果安装发生错误

    func.c:256:28: fatal error: ta-lib/ta_libc.h: No such file or directory
    compilation terminated.
    

    如果你遇到这样的编译错误,它通常意味着它找不到底层的库,需要安装:

    Dependencies 依赖库文件

    使用Python的TA库,你需要有安装底层库文件:下载TA-Lib底层库文件

    安装底层库文件方法

    Mac OS X

    $ brew install ta-lib
    

    Windows

    Download ta-lib-0.4.0-msvc.zip
    and unzip to C:\ta-lib

    Linux

    Download ta-lib-0.4.0-src.tar.gz and:

    $ untar and cd
    $ ./configure --prefix=/usr
    $ make
    $ sudo make install
    

    If you build TA-Lib using make -jX it will fail but that's OK!
    Simply rerun make -jX followed by [sudo] make install.

    相关文章

      网友评论

          本文标题:talib 中文文档(二):talib安装

          本文链接:https://www.haomeiwen.com/subject/dvexlxtx.html