title: error installing scikit learn on mac
body: <p>I get the following error while trying to install scikit learn on mac. I do not seem to find any solution to this problem. Can somebody help?</p>
  
  <pre><code>xxxx-MacBook-Pro:site-packages xxxx$ sudo pip install -U numpy scipy scikit-     learn
  Downloading/unpacking numpy from    https://pypi.python.org/packages/source/n/numpy/numpy- 1.9.1.tar.gz#md5=78842b73560ec378142665e712ae4ad9
    Downloading numpy-1.9.1.tar.gz (4.0Mb): 4.0Mb downloaded
    Running setup.py egg_info for package numpy
      /Library/Python/2.7/site-packages/build/numpy/setup.py:160: Warning:      'with' will become a reserved keyword in Python 2.6
  Traceback (most recent call last):
    File "&lt;string&gt;", line 14, in &lt;module&gt;
    File "/Library/Python/2.7/site-packages/build/numpy/setup.py", line 160
      with open('.gitmodules') as f:
              ^
  SyntaxError: invalid syntax
  Complete output from command python setup.py egg_info:
  /Library/Python/2.7/site-packages/build/numpy/setup.py:160: Warning: 'with' will become a reserved keyword in Python 2.6
  
  Traceback (most recent call last):
  
    File "&lt;string&gt;", line 14, in &lt;module&gt;
  
    File "/Library/Python/2.7/site-packages/build/numpy/setup.py", line 160
  
  with open('.gitmodules') as f:
  
          ^
  
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>Output of which pip:</p>
  
  <pre><code>//anaconda/bin/pip
  </code></pre>