上のpython-IGRAPHをインストールしている間、私はpip install
を使用してpython-igraph
をインストールしようとしたが、それをインポートするときにエラーメッセージを持っている:エラーのUbuntu 16.04
:~$ pip install python-igraph
Collecting python-igraph
Installing collected packages: python-igraph
Successfully installed python-igraph-0.7.1.post6
:~$ python
Python 2.7.12 |Anaconda 4.2.0 (64-bit)| (default, Jul 2 2016, 17:42:40)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import igraph
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/user/anaconda2/lib/python2.7/site-packages/igraph/__init__.py", line 34, in <module>
from igraph._igraph import *
ImportError: /home/user/anaconda2/lib/python2.7/site-packages/igraph/_igraph.so: undefined symbol: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev
私はその後、anacondaてインストールしようとし、また、エラーにつながりました:
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/home/user/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-65xDUp/python-igraph/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-LIJjEG-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-65xDUp/python-igraph/
完全なエラーメッセージはここにあります。linkです。前回私がUbuntuにigraphをインストールしたところ、それには何の問題もなかった。誰もがこれに遭遇し、それを解決する方法を知っていますか?
2番目のエラーは、行の残りの部分を見て、python.hやその他の.hファイルについて何かがあるかどうかを調べます。コンパイルするファイルが見つからないことがあります。 – furas
私は、 'pkg-configを使ってこのシステムでigraphのCコアを見つけることができませんでした。 Cコアを一からダウンロードしてコンパイルしようとしました。 '' igraphのCコアをダウンロードしてコンパイルできませんでした。理由は何でしょうか? – Ohm
すべての行を表示する必要があります。それはCコードをコンパイルしようとしますが、問題があります。主にファイル* .hにいくつかのCヘッダが必要なので、いくつかのライブラリをインストールする必要がありますが、エラーメッセージに何があるのかは分かりません。 – furas