[问题] Linux下透过anaconda安装igraph

楼主: vincentflame (vincent)   2015-11-12 19:06:25
我在Linux服务器上安装了anaconda2,并用此安装我要import的igraph和其他module,大部
分都可以成功import,但唯独igraph却import失败......试了很多方法解决,都还是一样的
问题......究竟是什么原因呢?谢谢.
以下是我用的指令:
$ cd /home/projectcoder/anaconda2/bin
$ pip install python-igraph
$ python
Python 2.7.10 |Anaconda 2.4.0 (64-bit)| (default, Oct 19 2015, 18:04:42)
[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/projectcoder/anaconda2/lib/python2.7/site-packages/igraph/__init__.py",
line 34, in <module>
from igraph._igraph import *
ImportError:
/home/projectcoder/anaconda2/lib/python2.7/site-packages/igraph/_igraph.so:
undefined symbol: _ZTVN10__cxxabiv121__vmi_class_type_infoE
>>>
(ctrl+D离开python接口)
以下是我下"ldd _igraph.so"指令的结果,这是什么意思呢?
$cd /home/projectcoder/anaconda2/lib/python2.7/site-packages/igraph
$ldd _igraph.so
linux-vdso.so.1 => (0x00007fffd737e000)
libxml2.so.2 => /home/projectcoder/anaconda2/lib/libxml2.so.2
(0x00007f344129d000)
libz.so.1 => /home/projectcoder/anaconda2/lib/libz.so.1
(0x00007f3441086000)
libm.so.6 => /lib64/libm.so.6 (0x00007f3440de7000)
libpython2.7.so.1.0 =>
/home/projectcoder/anaconda2/lib/libpython2.7.so.1.0 (0x00007f3440a04000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f34407ed000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f34405d0000)
libc.so.6 => /lib64/libc.so.6 (0x00007f344023c000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f3440037000)
libutil.so.1 => /lib64/libutil.so.1 (0x00007f343fe34000)
/lib64/ld-linux-x86-64.so.2 (0x0000003822200000)
有请各路好手提出你/妳的想法,感激不尽!
作者: Neisseria (Neisseria)   2015-11-13 00:03:00
楼主: vincentflame (vincent)   2015-11-13 01:11:00
还是一样的问题......
作者: rainguy   2015-11-17 03:51:00
试过 pip uninstall python-igraph 再重新安装吗?

Links booklink

Contact Us: admin [ a t ] ucptt.com