Python development headers on Mac OS X El Capitan for compiling Freeling API
<p>I am trying to install Freeling in Mac Os X El Capitan v. 10.11. I want to work with Freeling as a module for Python 3.5. I have to say in advance that this is my first serious contact with Mac... </p>

<p>I have installed Freeling and it runs well in the command line. My problem comes when I try to generate the module for Python.</p>

<p>Following the instructions, I have prepared the makefile and I have issued 'make' in the command line for generating the module. But I got this problem:</p>

<blockquote>
  <p>freeling_pythonAPI.cxx:171:11: fatal error: 'Python.h' file not found</p>
  
  <h1>include &lt; Python.h ></h1>

<pre><code>     ^
</code></pre>
  
  <p>1 error generated.
  make: *** [_freeling.so] Error 1</p>
</blockquote>

<p>In the documentation, it is prescribed the following:</p>

<blockquote>
  <p>1.- Make sure python development headers are installed</p>
</blockquote>

<p>I suppose that the solution will come from this way.
The Python Developers Guide (<a href="https://docs.python.org/devguide/setup.html" rel="nofollow">https://docs.python.org/devguide/setup.html</a>) explains what to do for installing the python development headers on Mac OS X:</p>

<blockquote>
  <p>How the command line tools are installed varies by OS X and Xcode release. In earlier releases, there may be a separate installer download. For OS X 10.7 and 10.8, there is an option in the Xcode app Preferences menu. For OS X 10.9 (Mavericks), run the following:</p>
</blockquote>

<pre><code>$ xcode-select --install   
</code></pre>

<p>So, I run this command, and I got this message:</p>

<pre><code>$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
</code></pre>

<p>And here it comes my question. After having run the instruction for generating the Python API, I got the impression that headers were missing. However, if I try to install the headers, it seems to me that they are already installed. Is that xcode instruction valid for Capitan? Or maybe am I missing something?</p>

<p>Any received counsel will be very much appreciated.</p>

<p>Best, 
TomB</p>