无法在python 3.7上安装igraph

2024-10-06 13:30:46 发布

您现在位置:Python中文网/ 问答频道 /正文

我需要通过pip3将pythonigraph安装到python3.7中。 当我运行:pip3 install python-igraph时,我得到以下消息错误:

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-whiv93xm/python-igraph/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-kbqa7cno-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-whiv93xm/python-igraph/

关于信息,我在Python2.7上有它。在

谢谢。在


Tags: installpipbuildpip3codeopenrecordtmp
1条回答
网友
1楼 · 发布于 2024-10-06 13:30:46

在安装库之前,可能需要安装一些依赖项。 试试这个:

sudo apt install libxml2-dev libz-dev python-dev python3-dev build-essential

然后继续:

^{pr2}$

我希望这能奏效

相关问题 更多 >