3
安装 talib « 阅微堂
source link: https://zhiqiang.org/it/install-talib.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1. ubuntu 上安装 talib 的 C 包
下面的安装地址可在https://github.com/mrjbq7/ta-lib#troubleshooting上找最新的:
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz tar -xzf ta-lib-0.4.0-src.tar.gz cd ta-lib/ ./configure --prefix=/usr make sudo make install
2. 安装 talib 的 Python 库
这里有点奇葩的是包名是TA-Lib
,不是talib
,虽然在使用时是import talib
:
sudo pip install Ta-Lib
注意一定要先安装上面的 C 包,否则会爆出编译错误:
talib/_ta_lib.c:611:10: fatal error: ta-lib/ta_defs.h: No such file or directory
Q. E. D.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK