error installing PyObjC osX
<p>I am new to Python and I am desperately trying to install PyObjC via spyder.
The command</p>

<pre><code>pip install PyObjC
</code></pre>

<p>returns an error: </p>

<blockquote>
  <p>Command "python setup.py egg_info" failed with error code 1 in
  /private/var/folders/0v/cg_rdz_x4d32jm6hz7n5txgh3djxb1/T/pip-build-UBlDtP/pyobjc-core/</p>
</blockquote>

<p>No solutions found in other posts worked. I have also tried to install the whole thing manually &amp; via conda. 
It seems that Xcode is installed.
And it is the only module I have had issues with. </p>

<p>Any suggestions? :)</p>

<p>Note: IÂ´m working with Python 2.7, on a macOS Sierra 10.12</p>

<p>The actual error message which can help more is in the beginning of the traceback. In my case it is</p>

<pre><code>xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Traceback (most recent call last):
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  ...
</code></pre>

<p>If you are getting the same, here are the answers on how to debug this:
<a href="http://stackoverflow.com/questions/17980759/xcode-select-active-developer-directory-error">xcode-select active developer directory error</a></p>

python osx python-2.7 install pyobjc