0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

talib をインストールしようとしたらエラーが出る

Last updated at Posted at 2021-12-02

talibをインストールしようとしたら、

"/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-483d_l2s/ta-lib/setup.py';f =getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file_ _, 'exec'))" install --record /tmp/pip-record-2os8vbe_/install-record.txt --single-version-externally-managed --com pile --user --prefix=" failed with error code 1 in /tmp/pip-install-483d_l2s/ta-lib/

もしくは、

cannot find ta-lib library, installation may fail.

こんなエラーが出たとき。

解決する

OSはLinux。

手順はこう。
1.talib 本体をインストールする
2.解凍する
3.pip install する

コードは以下。

$ curl -L http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz -O && tar xzvf ta-lib-0.4.0-src.tar.gz
$ untar and cd
$ ./configure --prefix=/usr
$ make
$ sudo make install
$ python -m pip install ta-lib

メモ

talibはそのままpipでインストールできないのは知ってた。
ただ、make installをsudoで行うのを忘れていたせいで上記のエラーが出てしまったみたい。
何か引っかかったらとりあえずsudoをつけ忘れていないか確認するのは大事。

参考記事→
https://mrjbq7.github.io/ta-lib/install.html
他のOSでのインストール方法などはこちらから。

0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?