LoginSignup
0
0

More than 5 years have passed since last update.

python-igraph がインストールできなかった際の対処法

Posted at

Ubuntu 16.04 LTS に Cytoscape 向けのPython用ラッパー兼ユーティリティー集である py2cytoscape をインストールする際に python-igraph のエラーが発生しました。

  Makefile:2357: ターゲット 'libigraph.la' のレシピで失敗しました
  make[3]: *** [libigraph.la] エラー 1
  make[3]: ディレクトリ '/tmp/pip-build-a2e2flrv/python-igraph/tmp/igraph.ola6sjpv/igraph-0.7.1/src' から出ます
  Makefile:1377: ターゲット 'all' のレシピで失敗しました
  make[2]: *** [all] エラー 2
  make[2]: ディレクトリ '/tmp/pip-build-a2e2flrv/python-igraph/tmp/igraph.ola6sjpv/igraph-0.7.1/src' から出ます
  Makefile:480: ターゲット 'all-recursive' のレシピで失敗しました
  make[1]: *** [all-recursive] エラー 1
  make[1]: ディレクトリ '/tmp/pip-build-a2e2flrv/python-igraph/tmp/igraph.ola6sjpv/igraph-0.7.1' から出ます
  Makefile:382: ターゲット 'all' のレシピで失敗しました
  make: *** [all] エラー 2
  Could not download and compile the C core of igraph.


  ----------------------------------------
  Failed building wheel for python-igraph

調べたところ libigraph0-dev が必要とのことだったので、こちらをインストールしたところ正常にインストールできました。

$ sudo apt-get install -y libigraph0-dev

参考になった記事


Failing to install python-igraph

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