Python TA-lib install error, how solve it?

后端 未结 4 1058
悲&欢浪女
悲&欢浪女 2021-02-10 14:31

i install TA-lib with below command,

pip install TA-lib

but got this error \"command \'gcc\' failed with exit status 1\":

4条回答
  •  有刺的猬
    2021-02-10 15:10

    This is how I fixed this issue in Linux: First I downloaded C dependency from: https://ta-lib.org/hdr_dw.html Installed it at a local directory using:

    ./configure --prefix=
    make
    make install
    

    Then used pip to install ta-lib. Make sure to give --global-options to point pip to local library location.

    pip install --upgrade --global-option=build_ext --global-option="-L/lib" --global-option="-I/include" --install-option="--prefix=" ta-lib
    

提交回复
热议问题