Skip to content

#include "numpy/arrayobject.h" problem #1

@2113vm

Description

@2113vm

I had a problem with pyDML installation on Mojave mac os. The error looked like:

#include "numpy/arrayobject.h"
^~~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command 'clang' failed with exit status 1

I solved that with help:

>>>import numpy as np
>>>np.get_inlude()
'/Users/UserName/ProjectName/venv/lib/python3.7/site-packages/numpy/core/include''

and then

 export CFLAGS="-I/Users/UserName/ProjectName/venv/lib/python3.7/site-packages/numpy/core/include $CFLAGS"

It helped me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions