2015-05-13 2 views
2

Я попытался установить питона-igraph от:Erro при установке Igraph 0.7 на Debian

pip install python-igraph

и

[https://github.com/igraph/python-igraph]python setup.py build

Как сообщил об ошибке, равную этой ошибки: https://github.com/igraph/igraph/issues/468

После нескольких неудачных попыток у меня был еще один erro:

Вход: sudo python setup.py build или sudo pip install python-igraph

Выход:

/usr/local/lib/python2.7/dist-packages/setuptools-15.0-py2.7.egg/setuptools/dist.py:282: UserWarning: Normalizing '0.7.1-4' to '0.7.1.post4' 
running install 
running bdist_egg 
running egg_info 
creating python_igraph.egg-info 
writing python_igraph.egg-info/PKG-INFO 
writing top-level names to python_igraph.egg-info/top_level.txt 
writing dependency_links to python_igraph.egg-info/dependency_links.txt 
writing python_igraph.egg-info/PKG-INFO 
writing top-level names to python_igraph.egg-info/top_level.txt 
writing dependency_links to python_igraph.egg-info/dependency_links.txt 
writing manifest file 'python_igraph.egg-info/SOURCES.txt' 
reading manifest file 'python_igraph.egg-info/SOURCES.txt' 
reading manifest template 'MANIFEST.in' 
writing manifest file 'python_igraph.egg-info/SOURCES.txt' 
installing library code to build/bdist.linux-x86_64/egg 
running install_lib 
running build_py 
running build_ext 
Build type: dynamic extension 
Include path: /usr/local/include/igraph 
Library path: /usr/local/lib 
Linked dynamic libraries: igraph 
Linked static libraries: 
Extra compiler options: 
Extra linker options: 
building 'igraph._igraph' extension 
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/igraph -I../../build/include -I../../include -I/usr/local/include/igraph -I/usr/include/igraph -I/usr/include/python2.7 -c src/edgeobject.c -o build/temp.linux-x86_64-2.7/src/edgeobject.o 
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/igraph -I../../build/include -I../../include -I/usr/local/include/igraph -I/usr/include/igraph -I/usr/include/python2.7 -c src/random.c -o build/temp.linux-x86_64-2.7/src/random.o 
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/igraph -I../../build/include -I../../include -I/usr/local/include/igraph -I/usr/include/igraph -I/usr/include/python2.7 -c src/bfsiter.c -o build/temp.linux-x86_64-2.7/src/bfsiter.o 
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include/igraph -I../../build/include -I../../include -I/usr/local/include/igraph -I/usr/include/igraph -I/usr/include/python2.7 -c src/edgeseqobject.c -o build/temp.linux-x86_64-2.7/src/edgeseqobject.o 
In file included from src/edgeseqobject.c:27:0: 
src/convert.h:63:57: error: unknown type name ‘igraph_layout_grid_t’ 
src/convert.h:66:63: error: unknown type name ‘igraph_random_walk_stuck_t’ 
error: command 'gcc' failed with exit status 1 

Может кто-нибудь мне помочь?

ответ

2

У вас есть копия ядра C igraph, установленная в /usr/local, но это несовместимо с версией интерфейса Python, которую вы пытаетесь установить. Судя по выходу, вы устанавливаете python-igraph 0.7.1-4, что совместимо с igraph 0.7.1. Итак, либо установите ядро ​​C igraph, версию 0.7.1, либо просто удалите все связанные с играфом вещи от /usr/local/include/igraph, /usr/local/lib и, возможно, /usr/local/lib/pkgconfig, а затем повторите попытку с pip install python-igraph. Если вы удалили ядро ​​C с вашего устройства, pip install python-igraph попытается загрузить его и связать с ним при компиляции интерфейса Python.

+0

спасибо, эта информация работает для меня :) –

Смежные вопросы