Closed HannesHolste closed 8 years ago
Thanks for the report and sorry for the slow reply. Could you please check what "numpy.get_include()" produces on your system?
Thanks!
Or rather: can you check if #182 fixes the issue for you?
Yes, #182 fixes the error. To test that PR, I removed the $CFLAGS modification, uninstalled pystruct via pip, checked out the pull request locally, and successfully ran make
as well as pip install -e ./local-pystruct/
.
Danke, Andreas!
>>> import numpy
>>> numpy.get_include()
'/usr/local/lib/python2.7/site-packages/numpy/core/include'
On OSX El Capitan 10.11.3, with pip + scikit-learn + numpy + python, running
pip install pystruct
throws this error (shortened):I fixed it by running this in console, to include numpy/core/include in the clang build procedure:
export CFLAGS="-I /usr/local/lib/python2.7/site-packages/numpy/core/include $CFLAGS"
and then re-running:pip install pystruct
Related discussion on this problem from another package: https://github.com/esheldon/fitsio/issues/49