[SciPy-User] R: [ANN] NLopt, a nonlinear optimization library, now with Python interface

David Cournapeau cournape@gmail....
Wed Jul 7 01:12:00 CDT 2010

On Wed, Jul 7, 2010 at 6:24 AM, Steven G. Johnson <stevenj@alum.mit.edu> wrote:
> enrico avventi wrote:
>> i wanted to try out your library but the configure process won't find
>> the header arrayobject.h and thus won't compile the bindings.
>> where am i supposed to put that header?
>> as my distro (Archlinux) doesn't seem to install the numpy headers i
>> tried to copy them manually. so far i tried:
> I don't know anything about Archlinux.  On my (Debian) system, the numpy
> headers are installed under
>        /usr/include/python2.5/numpy/arrayobject.h

That's actually debian specific. I have not looked at the nlopt code,
but the recommended way to use numpy headers is the get_numpy_includes
from numpy.distutils.misc_util.get_numpy_include_dirs. Doing so
guarantees it will work everywhere,


More information about the SciPy-User mailing list