TA-LIB 安装以及 python tab-lib

wget prdownloads.sourceforge.net

tar xvf ta-lib-0.4.0-src.tar.gz

cd ta-lib

./autogen.sh

./configure

make

sudo make install

sudo pip install ta-lib

错误:

ImportError: libta_lib.so.0: cannot open shared object file: No such file or directory

解决:

sudo find / -name libta_lib.so.0

/home/ai/eco-ta/ta-lib/src/.libs/libta_lib.so.0

/usr/local/lib/libta_lib.so.0

vi /etc/profile

添加

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

source /etc/profile

编辑于 2018-03-30