我嘗試了一段時間來爲我的EPD-python安裝python-igraph-0.6模塊。 我建C芯,和各種網站上的指令之後我做的:在Fedora 17上安裝python-igraph-0.6模塊
/home/joseph/epd/bin/python setup.py build
或
/home/joseph/epd/bin/python setup.py install
,它始終生成相同的錯誤:
error: command 'gcc' failed with exit status 1
我會必須可能的解釋:'gcc'工作不正常(但我已經用./configure,make,make install編譯了C部分),或者某種東西沒有正確鏈接。 我已經看過類似的帖子和安裝python-devel軟件包等等...... 但沒有任何改變。
完整的輸出是:
[[email protected] python-igraph-0.6]# /home/joseph/epd/bin/python setup.py build
Using default include and library paths for compilation
If the compilation fails, please edit the LIBIGRAPH_FALLBACK_*
variables in setup.py or include_dirs and library_dirs in
setup.cfg to point to the correct directories and libraries
where the C core of igraph is installed
()
Include path: /usr/include /usr/local/include
Library path:
running build
running build_py
running build_ext
building 'igraph._igraph' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -O2 -fPIC -I/usr/include -I/usr /local /include -I../../build/include -I../../include -I/usr/local /include -I/usr/include -I/home/joseph/epd/include/python2.7 -c src/common.c -o build/temp.linux-x86_64-2.7/src/common.o
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -O2 -fPIC -I/usr/include -I/usr/local/include -I../../build/include -I../../include -I/usr/local/include -I/usr/include -I/home/joseph/epd/include/python2.7 -c src/arpackobject.c -o build/temp.linux-x86_64-2.7/src/arpackobject.o
In file included from src/arpackobject.c:23:0:
src/arpackobject.h:27:27: fatal error: igraph_arpack.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
PS:'easy_install python-igraph'會導致相同的錯誤信息。 – user1227298
PS2:'yum install python-igraph'會安裝一些舊版本的0.5.4-4,但無論如何都不能在正常的系統python或EPD-python中導入它。 – user1227298
請包括'python setup.py build'的完整輸出 - 您包含的行並不是真正的信息。 –