Error while installing Python TA-lib package on Linux system with no sudo privileges -


i'm having trouble installing python talib package on linux system (linux 2.6.32-431.17.1.el6.x86_64). see https://github.com/mrjbq7/ta-lib .

what did far:

  • brew install ta-lib (dependency)
    • this worked fine. if rerun command see warning: ta-lib-0.4.0 installed
  • pip install ta-lib
    • when running this, following error: error: command /home/username/.linuxbrew/bin/gcc' failed exit status 1

i don't have sudo privileges on machine, suspect might problem. tried

pip install --user ta-lib 

and

wget https://github.com/mrjbq7/ta-lib/archive/master.zip && unzip master.zip && cd ta-lib-master && python setup.py install. 

same error above.

any ideas i'm doing wrong?

i stuck @ problem. found 2 ways solve this. problem because ta-lib installation check several dirs, not include linuxbrew path. have 2 ways solve problem.

  1. follow instructions on https://github.com/mrjbq7/ta-lib, download "ta-lib-0.4.0-src.tar.gz", , manually install ta-lib
  2. run following code in shell, (you may need change path ta-lib or ta-lib version)

    export ta_include_path='/home/username/.linuxbrew/cellar/ta-lib/0.4.0/include'

    export ta_library_path='/home/username/.linuxbrew/cellar/ta-lib/0.4.0/lib'

then run "pip install ta-lib"


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -