본문 바로가기

COMPUTER SCIENCE/PYTHON

[Python] pygraphviz 설치 오류 해결

CentOS 기준, 다음과 같은 오류가 나왔을 때 해결방법

subprocess.CalledProcessError: Command '['pkg-config', '--libs-only-L', 'libcgraph']' returned non-zero exit status 1.

ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1meqr4hy/pygraphviz_1dd95962042b4dada13e5f3e5ee3a3f0/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1meqr4hy/pygraphviz_1dd95962042b4dada13e5f3e5ee3a3f0/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-record-kfb4yg5f/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6m/pygraphviz Check the logs for full command output.

 

sudo yum install graphviz-devel
pip install pygraphviz

 

반응형