1

我一直试图弄清楚安装这个模块的问题是什么,但我被卡住了。我能找到的唯一相关链接是here。我在终端中输入命令sudo -E pip3 install networkit,这就是我得到的。

g++: error: unrecognized command line option '-Qunused-arguments'
g++: error: unrecognized command line option '-Qunused-arguments'
error: command 'g++' failed with exit status 1

----------------------------------------
Command "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -c "import setuptools, tokenize;__file__='/private/var/folders/9n/zhnv69nd7sv9fj9gsg64c1p00000gp/T/pip-build-l15ye4xm/networkit/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/9n/zhnv69nd7sv9fj9gsg64c1p00000gp/T/pip-25ou5_op-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/9n/zhnv69nd7sv9fj9gsg64c1p00000gp/T/pip-build-l15ye4xm/networkit

我能够使用 pip安装这里提到的所有 python 包。我有 python 3.5,使用macports安装 gcc5 ,目前使用 Cython 版本 0.23.4,并通过 Homebrew 安装 OpenMP。我能够找到我遇到的大多数问题的答案,但我似乎无法为此找到答案。

编辑:which g++产生 /opt/local/bin/g++ 并echo ${CXX}产生一个空行

4

0 回答 0