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
- this worked fine. if rerun command see
pip install ta-lib
- when running this, following error:
error: command /home/username/.linuxbrew/bin/gcc' failed exit status 1
- when running this, following error:
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.
- follow instructions on https://github.com/mrjbq7/ta-lib, download "ta-lib-0.4.0-src.tar.gz", , manually install ta-lib
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
Post a Comment