UnicodeDecodeError在安装python igraph时出错
我正在64位LinuxMint16上使用Python2.7,并尝试安装PythoniGraph。但是当我运行UnicodeDecodeError在安装python igraph时出错,python,igraph,Python,Igraph,我正在64位LinuxMint16上使用Python2.7,并尝试安装PythoniGraph。但是当我运行sudo pip install python igraph时,我会得到以下日志: Downloading/unpacking python-igraph Downloading python-igraph-0.7.1-1.tar.gz (375kB): 375kB downloaded Running setup.py egg_info for package python-ig
sudo pip install python igraph
时,我会得到以下日志:
Downloading/unpacking python-igraph
Downloading python-igraph-0.7.1-1.tar.gz (375kB): 375kB downloaded
Running setup.py egg_info for package python-igraph
Installing collected packages: python-igraph
Running setup.py install for python-igraph
Build type: dynamic extension
Include path: /usr/include/igraph
Library path:
Linked dynamic libraries: igraph
Linked static libraries:
Extra compiler options:
Extra linker options:
building 'igraph._igraph' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/igraph -I../../build/include -I../../include -I/usr/local/include/igraph -I/usr/include/igraph -I/usr/include/python2.7 -c src/igraphmodule.c -o build/temp.linux-x86_64-2.7/src/igraphmodule.o
In file included from src/igraphmodule.c:30:0:
src/convert.h:65:59: error: unknown type name ‘igraph_pagerank_algo_t’
int igraphmodule_PyObject_to_pagerank_algo_t(PyObject *o, igraph_pagerank_algo_t *result);
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools;__file__='/tmp/pip_build_root/python-igraph/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-akm3_O-record/install-record.txt --single-version-externally-managed:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/igraph
copying igraph/formula.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/__init__.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/configuration.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/summary.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/layout.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/cut.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/datatypes.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/utils.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/clustering.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/statistics.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/matching.py -> build/lib.linux-x86_64-2.7/igraph
copying igraph/compat.py -> build/lib.linux-x86_64-2.7/igraph
creating build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/operators.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/isomorphism.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/__init__.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/colortests.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/conversion.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/homepage.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/attributes.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/vertexseq.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/structural.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/separators.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/atlas.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/layouts.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/rng.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/games.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/utils.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/iterators.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/edgeseq.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/indexing.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/spectral.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/cliques.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/flow.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/basic.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/generators.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/matching.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/foreign.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/bipartite.py -> build/lib.linux-x86_64-2.7/igraph/test
copying igraph/test/decomposition.py -> build/lib.linux-x86_64-2.7/igraph/test
creating build/lib.linux-x86_64-2.7/igraph/app
copying igraph/app/__init__.py -> build/lib.linux-x86_64-2.7/igraph/app
copying igraph/app/shell.py -> build/lib.linux-x86_64-2.7/igraph/app
creating build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/__init__.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/edge.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/shapes.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/coord.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/metamagic.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/utils.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/text.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/graph.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/colors.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/vertex.py -> build/lib.linux-x86_64-2.7/igraph/drawing
copying igraph/drawing/baseclasses.py -> build/lib.linux-x86_64-2.7/igraph/drawing
creating build/lib.linux-x86_64-2.7/igraph/remote
copying igraph/remote/__init__.py -> build/lib.linux-x86_64-2.7/igraph/remote
copying igraph/remote/nexus.py -> build/lib.linux-x86_64-2.7/igraph/remote
copying igraph/remote/gephi.py -> build/lib.linux-x86_64-2.7/igraph/remote
creating build/lib.linux-x86_64-2.7/igraph/vendor
copying igraph/vendor/__init__.py -> build/lib.linux-x86_64-2.7/igraph/vendor
copying igraph/vendor/texttable.py -> build/lib.linux-x86_64-2.7/igraph/vendor
running build_ext
Build type: dynamic extension
Include path: /usr/include/igraph
Library path:
Linked dynamic libraries: igraph
Linked static libraries:
Extra compiler options:
Extra linker options:
building 'igraph._igraph' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/igraph -I../../build/include -I../../include -I/usr/local/include/igraph -I/usr/include/igraph -I/usr/include/python2.7 -c src/igraphmodule.c -o build/temp.linux-x86_64-2.7/src/igraphmodule.o
In file included from src/igraphmodule.c:30:0:
src/convert.h:65:59: error: unknown type name ‘igraph_pagerank_algo_t’
int igraphmodule_PyObject_to_pagerank_algo_t(PyObject *o, igraph_pagerank_algo_t *result);
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip_build_root/python-igraph/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-akm3_O-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip_build_root/python-igraph
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==1.4.1', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 148, in main
return command.main(args[1:], options)
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 169, in main
text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 50: ordinal not in range(128)
下载/解包python igraph
下载python-igraph-0.7.1-1.tar.gz(375kB):下载375kB
为包python igraph运行setup.py egg_info
安装收集的软件包:pythonigraph
运行针对python igraph的setup.py安装
构建类型:动态扩展
包含路径:/usr/Include/igraph
库路径:
链接的动态库:igraph
链接的静态库:
额外的编译器选项:
额外链接器选项:
建筑“igraph.\u igraph”扩建
x86_64-linux-gnu-gcc-pthread-fno严格别名-DNDEBUG-g-fwrapv-O2-Wall-Wstrict原型-fPIC-I/usr/include/igraph-I.././build/include-I.././include-I/usr/local/include/igraph-I/usr/include/python2.7-c src/igraphmodule.c-o build/temp.linux-x86\u 64-2.7/igraphmodule.o
在src/igraphmodule.c中包含的文件中:30:0:
src/convert.h:65:59:错误:未知类型名称“igraph\u pagerank\u algo\t”
int igraphmodule_PyObject_to_pagerank_algot_(PyObject*o,igraph_pagerank_algot*result);
^
错误:命令“x86_64-linux-gnu-gcc”失败,退出状态为1
从命令/usr/bin/python-c“import setuptools;uuuu file_uuu=”/tmp/pip_build_root/python igraph/setup.py';exec(compile(open(uuu file_uu).read().replace('\r\n','\n'),uuu file_uu,'exec'))安装--record/tmp/pip-akm3_O-record/install-record.txt--外部管理的单一版本:
正在运行的安装
运行构建
运行build\u py
创建构建
创建build/lib.linux-x86_64-2.7
创建build/lib.linux-x86_64-2.7/igraph
复制igraph/formula.py->build/lib.linux-x86_64-2.7/igraph
正在复制igraph/uuu init_uuuu.py->build/lib.linux-x86_64-2.7/igraph
正在复制igraph/configuration.py->build/lib.linux-x86_64-2.7/igraph
复制igraph/summary.py->build/lib.linux-x86_64-2.7/igraph
复制igraph/layout.py->build/lib.linux-x86_64-2.7/igraph
复制igraph/cut.py->build/lib.linux-x86_64-2.7/igraph
复制igraph/datatypes.py->build/lib.linux-x86_64-2.7/igraph
复制igraph/utils.py->build/lib.linux-x86_64-2.7/igraph
复制igraph/clustering.py->build/lib.linux-x86_64-2.7/igraph
复制igraph/statistics.py->build/lib.linux-x86_64-2.7/igraph
正在复制igraph/matching.py->build/lib.linux-x86_64-2.7/igraph
复制igraph/compat.py->build/lib.linux-x86_64-2.7/igraph
创建build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/operators.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/isomorphism.py->build/lib.linux-x86_64-2.7/igraph/test
正在复制igraph/test/_init__.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/colortests.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/conversion.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/homepage.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/attributes.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/vertexseq.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/structural.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/separators.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/atlas.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/layouts.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/rng.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/games.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/utils.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/iterators.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/edgeseq.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/index.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/spectrum.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/cliques.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/flow.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/basic.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/generators.py->build/lib.linux-x86_64-2.7/igraph/test
正在复制igraph/test/matching.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/foreign.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/bipartite.py->build/lib.linux-x86_64-2.7/igraph/test
复制igraph/test/decomposition.py->build/lib.linux-x86_64-2.7/igraph/test
创建build/lib.linux-x86_64-2.7/igraph/app
正在复制igraph/app/_init__.py->build/lib.linux-x86_64-2.7/igraph/app
正在复制igraph/app/shell.py->build/lib.linux-x86_64-2.7/igraph/app
创建build/lib.linux-x86_64-2.7/igraph/drawing
正在复制igraph/drawing/_init__.py->build/lib.linux-x86_64-2.7/igraph/drawing
复制igraph/drawing/edge.py->build/lib.linux-x86_64-2.7/igraph/drawing
复制igraph/drawing/shapes.py->build/lib.linux-x86_64-2.7/igraph/drawing
复制igraph/drawing/coord.py->build/lib.linux-x86_64-2.7/igraph/drawing
复制igraph/drawing/metamagic.py->build/lib.linux-x86_64-2.7/igraph/drawing
复制igraph/drawing/utils.py->build/lib.linux-x86_64-2.7/igraph/drawing
复制igraph/drawing/text.py->build/lib.linux-x86_64-2.7/igraph/drawing
复制igraph/drawing/graph.py->build/lib.linux-x86_64-2.7/igraph/drawing
复制igraph/drawing/colors.py->build/lib.linux-x86_64-2.7/igraph/drawing
复制igraph/drawing/vertex.py->build/lib.linux-x86_64-2.7/igraph/drawing
复制igraph/drawing/baseclasses.py->build/lib.linux-x86_64-2.7/igraph/drawing
创建build/lib.linux-x86_64-2.7/igraph/remote
正在复制igraph/remote/_init__.py->build/lib.linux-x86_64-2.7/igraph/remote
正在复制igraph/remote/nexus.py->build/lib.linux-x86_64-2.7/igraph/remote
复制igraph/remote/gephi.py->bu
./configure && make && sudo make install