在Mac上安装Pymaxflow

时间:2018-12-21 13:43:59

标签: python max-flow

我试图通过git安装最新版本的Pymaxflow。当我下载源代码并运行

python setup.py build

它报告一个错误:

maxflow/src/_maxflow.cpp:610:10: fatal error: 'ios' file not found
#include "ios"
     ^~~~~
2 warnings and 1 error generated.
error: command 'gcc' failed with exit status 1

那么,在哪里可以找到此“ ios”文件?以下是我的gcc配置:

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

0 个答案:

没有答案