LoginSignup
56
49

More than 1 year has passed since last update.

python3でTA-Libをインストールする方法をまとめてみた

Last updated at Posted at 2018-04-21

テクニカル分析における代表的な指標を算出するライブラリとしてTA-Libがあります。
bitcoinのトレードBotを作成する時に非常に役に立つライブラリなのですが、インストール方法に癖があるのでまとめてみました。

Linux

下記のコマンドをそのままコピペ

wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
tar -zxvf ta-lib-0.4.0-src.tar.gz
cd ta-lib
./configure --prefix=/usr
sudo make
sudo make install
cd ../
sudo rm -rf ta-lib-0.4.0-src.tar.gz
sudo rm -rf ta-lib
pip install TA-Lib

Windows

1.下記サイトからダウンロード
https://www.lfd.uci.edu/~gohlke/pythonlibs/#ta-lib
Python3.8.x 64bit ⇒ TA_Lib-0.4.24-cp38-cp38-win_amd64.whl
2.ダウンロードしたモジュールをインストール

pip install TA_Lib-0.4.24-cp38-cp38-win_amd64.whl

Windows(for anaconda)

conda install ta-lib

anacondaがめっちゃ楽って話でしたw

56
49
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
56
49