Ubuntu 8.04 LTS 64ビットにpython-igraphをインストールする方法は?
-
08-07-2019 - |
質問
どうやら libigraph
と python-igraph
は、 apt-get
またはでインストールできない唯一のパッケージですUbuntu 8.04 LTS 64ビットでのeasy_install
。
ソースからソースへの両方のインストールはスムーズに行われるようです...使用するまで。
Pythonを実行すると、次のようになります:
>>> import igraph
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "igraph/__init__.py", line 30, in <module>
from igraph.core import *
ImportError: No module named core
または(python-igraphのeasy_installバージョンを使用する場合)
>>> import igraph
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build/bdist.linux-x86_64/egg/igraph/__init__.py", line 30, in <module>
File "build/bdist.linux-x86_64/egg/igraph/core.py", line 7, in <module>
File "build/bdist.linux-x86_64/egg/igraph/core.py", line 6, in __bootstrap__
ImportError: libigraph.so.0: cannot open shared object file: No such file or directory
ここからソースを取得しました
igraph 0.5.2 = http://igraph.sourceforge.net/download.html
python-igraph 0.5.2 = http://pypi.python。 org / pypi / python-igraph / 0.5.2
誰かが私を正しい方向に向けることができますか?
解決
どのようにコンパイルしましたか? make installをしましたか(もしあれば)。
easy_installバージョンの「ライブラリが見つかりません」エラーについては、次のことを試してみます:
- '
sudo updatedb
'(ロケートデータベースを更新するため) - '
loci libigraph.so.0
'(このファイルがシステム上のどこにあるかを確認します。makeインストールを行った場合は、/ usr / local / libに移動することもできます...またはpython lib dirにありますか?) - このファイルがあるディレクトリが現在のLD_LIBRARY_PATHにないかどうかを調べます( '
echo $ LD_LIBRARY_PATH
')。 - このディレクトリがここにない場合は、 '
export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH:/ yourdirhere
'(/etc/ld.so.confに追加して永続的にする)を追加してください。ldconfig -n / yourdirhere
'
他のヒント
2009年11月8日の時点で、Launchpadからigraphの公式Ubuntuパッケージが入手可能です。対応する
libigraph.so.0はどこにありますか? / usr / libや/ usr / local / libなど、pythonが探す場所にないようです。
http://の手順に従いましたsocialsynergyweb.org/network/blog/install-python-igraph-ubuntu-904-64-bit 。また、実際のigraphを実行するために、スクリプトpython-igraph-0.5.2 / scripts / igraphを使用しました。今、私はigraphを使用することができます。スクリプト/ igraphスクリプトを使用しない場合、同じエラーが表示されます。