Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
536 views
in Technique[技术] by (71.8m points)

python - TA-Lib Install Error

I am trying to install TA-Lib on Debian Jessie using pip. However I am encountering the following error:

#include "ta-lib/ta_defs.h"
                            ^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

That is just a small bit of the error. I have tried as this post mentioned installing the following packages:

sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev

sudo easy_install greenlet

sudo easy_install gevent

without much luck. I am using python 3.4 on a VPS if that makes a difference. Any ideas on how I can solve this issue? Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

first, you should download the ta-lib at link: http://ta-lib.org/hdr_dw.html .This is a c lib...

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

make and install the c lib -ta-lib

After this, you can input : pip install ta-lib , Successfully! The result


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...