Home 解决Ubuntu下pip3安装TA-Lib失败的问题
Post
Cancel

解决Ubuntu下pip3安装TA-Lib失败的问题

在ubuntu系统下安装TA-Lib遇到了如下问题:

1
talib/_ta_lib.c:526:28: fatal error: ta-lib/ta_defs.h: No such file or directory

解决办法:

1
2
3
4
5
6
7
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
tar -zxf ta-lib-0.4.0-src.tar.gz
cd ta-lib/
./configure --prefix=/usr
make
sudo make install
pip3 install ta-lib

即可~

This post is licensed under CC BY 4.0 by the author.