Hi! I am trying to install igraph using pip. I’m currently getting this error message:
Skipping optional fixer: buffer
Skipping optional fixer: idioms
Skipping optional fixer: set_literal
Skipping optional fixer: ws_comma
running build_ext
Cannot find the C core of igraph on this system using pkg-config.
We will now try to download and compile the C core from scratch.
Version number of the C core: 0.7.1.post6
We will also try: 0.7.1
Version 0.7.1.post6 of the C core of igraph is not found among the nightly builds.
Use the --c-core-version switch to try a different version.
Could not download and compile the C core of igraph.
Running setup.py install for python-igraph ... error
ERROR: Command errored out with exit status 1: /usr/local/bin/python3.6 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/yn/1q0c_j114s31jc1m39nrfplh0000gn/T/pip-install-83_rxu8b/python-igraph_bf9535e8b18a47388627b10fc6cbd6a7/setup.py'"'"'; __file__='"'"'/private/var/folders/yn/1q0c_j114s31jc1m39nrfplh0000gn/T/pip-install-83_rxu8b/python-igraph_bf9535e8b18a47388627b10fc6cbd6a7/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/yn/1q0c_j114s31jc1m39nrfplh0000gn/T/pip-record-lj8lul4q/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m/python-igraph Check the logs for full command output.
So it looks like I need to install the C core. I have tried doing this with brew
and it succeeded. I have also tried updating pip
, installing libtool
using brew
, using different versions of Python (3.6 and 3.9), and I am not using Anaconda on this machine. Does anyone have any suggestions on getting this to work?