title: c++: can't find numpy/arrayobject.h and Python.h
body: <p>I'm trying to compile the following c++ file</p>
  <pre><code>#include &lt;iostream&gt; 
  #include &lt;Python.h&gt;
  #include &lt;numpy/npy_math.h&gt;
   
  using namespace std; 
  int main() 
  { 
   
     cout &lt;&lt; &quot;Hello World&quot; &lt;&lt; endl;    // prints value of i 
  }
  </code></pre>
  <p>with the following</p>
  <pre><code>clang++ main.cpp -std=c++1y
  </code></pre>
  <p>It returns:      main.cpp:3:10: fatal error: 'Python.h' file not found</p>
  <p>Then I found this solution
  
  <a href="https://stackoverflow.com/questions/16454129/python-h-header-file-missing-on-mac-os-x-10-6">Python.h header file missing on Mac OS X 10.6</a>
  
  then I change the file into</p>
  <pre><code>#include &lt;iostream&gt; 
  #include &lt;Python/Python.h&gt;
  #include &lt;numpy/npy_math.h&gt;
  
  using namespace std; 
  int main() 
  { 
  
     cout &lt;&lt; &quot;Hello World&quot; &lt;&lt; endl;    // prints value of i 
  }
  </code></pre>
  <p>It works, but second problem comes out:  main.cpp:3:10: fatal error: 'numpy/npy_math.h' file not found</p>
  <p>Ok, then I find the path of numpy and</p>
  <pre><code>clang++ main.cpp -std=c++1y -I /Users/nicolas/opt/anaconda3/lib/python3.7/site-packages/numpy/core/include
  </code></pre>
  <p>then, it returns</p>
  <p>/Users/nicolas/opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/npy_common.h:11:10: fatal error: 'Python.h' file not found
  #include &lt;Python.h&gt;</p>
  <p>Can anyone help me?</p>