在 Mac 上安装 igraph 时出现问题(使用 python 2.7)

Issues while installing igraph on Mac (with python 2.7)

我已经阅读了一些问题并遵循了有关此主题的指南,但没有找到任何解决方案。
我正在尝试在 Mac 上的虚拟环境中为 Python 2.7 安装 igraph。我没有使用 Anaconda(我以前和其他包有冲突)
我遵循了 igraph 网站的指南,使用 Homebrew 和 this 源代码,但我仍然遇到同样的问题:

ImportError: dlopen(/Users/alexandreattia/Desktop/Work/py27_venv/lib/python2.7/site-packages/igraph/_igraph.so, 2): Symbol not found: _iconv Referenced from: /Users/alexandreattia/Desktop/Work/py27_venv/lib/python2.7/site-packages/igraph/_igraph.so Expected in: flat namespace in /Users/alexandreattia/Desktop/Work/py27_venv/lib/python2.7/site-packages/igraph/_igraph.so

非常感谢您的帮助。

我终于发现我的问题是由虚拟环境中的 python 二进制路径引起的。当我创建我的 virtualenv (virtualenv -p /python/path/) 时,我不得不更改 python 二进制路径,与我在自制软件中使用的相同(它可以在 brew config 中找到)。