PyMaxflow icon indicating copy to clipboard operation
PyMaxflow copied to clipboard

unable to install on Mac using either pip or manual installation

Open karthickgopalswamy opened this issue 5 years ago • 1 comments

However I try to build, it results in the same error as below.

"Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-W#warnings] #warning "Using deprecated NumPy API, disable it with "
^ maxflow/src/_maxflow.cpp:637:10: fatal error: 'ios' file not found #include "ios" ^~~~~

karthickgopalswamy avatar Jul 23 '19 18:07 karthickgopalswamy

adding CFLAGS='-stdlib=libc++' worked for me, e.g.: CFLAGS='-stdlib=libc++' pip install PyMaxflow (similar to https://github.com/huggingface/neuralcoref/issues/97)

timmh avatar Nov 22 '19 22:11 timmh

Binary wheels are available via pip now for multiple platforms including Mac. Hopefully this problem will not recur.

Best

pmneila avatar Jan 14 '23 21:01 pmneila