How to set the environment in which python snippet can run in c++ program?
<p>I have created two files <code>embed.py</code> <code>useEmbed.cpp</code>in my home directory.</p>

<p><strong>embed.py</strong></p>

<pre><code>import os

print os.getcwd()
</code></pre>

<p><strong>useEmbed.cpp</strong></p>

<pre><code>  #include &lt;iostream&gt;
  #include "Python.h"
  using namespace std;

  int main()
  {
       Py_Initialize();
       PyRun_SimpleFile("embed.py");
       Py_Finalize();

      return 0;
  }
</code></pre>

<p>Command <code>g++ useEmbed.cpp -o useEmbed</code> returns <code>Python.h not found</code>, What should i do next step to make <code>.cpp</code> file compiled successfully and return the right answer? Thank for tips about how to set environment to make this test OK.</p>

<p>Thank you!</p>

<p><strong>UPDATE</strong>: Thanks for tips from David and Alexander. Problem has been solved after install package <code>python-devel</code> in my Fedora Linux.</p>
