title: brew install python - fails OSX
body: <p>Im trying to install python through <code>brew</code> with:</p>
  
  <pre><code>brew install python  
  </code></pre>
  
  <p>But get the following error: </p>
  
  <pre><code>Stevens-MacBook-Pro :: ~ ‹master*› » brew install python
  ==&gt; Downloading https://downloads.sf.net/project/machomebrew/Bottles/python-2.7.
  Already downloaded: /Library/Caches/Homebrew/python-2.7.8_2.mountain_lion.bottle.tar.gz
  ==&gt; Pouring python-2.7.8_2.mountain_lion.bottle.tar.gz
  ==&gt; Caveats
  Setuptools and Pip have been installed. To update them
    pip install --upgrade setuptools
    pip install --upgrade pip
  
  You can install Python packages with
    pip install &lt;package&gt;
  
  They will install into the site-package directory
    /usr/local/lib/python2.7/site-packages
  
  See: https://github.com/Homebrew/homebrew/wiki/Homebrew-and-Python
  
  .app bundles were installed.
  Run `brew linkapps` to symlink these to /Applications.
  /usr/bin/install_name_tool: object: /usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python malformed object (unknown load command 10)
  Error: Failed to fix install names
  The formula built, but you may encounter issues using it or linking other
  formula against it.
  ==&gt; /usr/local/Cellar/python/2.7.8_2/bin/python -ssetup.py --no-user-cfg instal
    using one of the approaches described here:
  
  Please make the appropriate changes for your system and try again.
  Warning: The post-install step did not complete successfully
  You can try again using `brew postinstall python`
  ==&gt; Summary
    /usr/local/Cellar/python/2.7.8_2: 4626 files, 73M
  </code></pre>
  
  <p>The error messages says the post install fails, and to try installing it again with:</p>
  
  <pre><code>brew postinstall python
  </code></pre>
  
  <p>but the error still persists. I also tried <code>brew linkapps</code> and it success fully links python but when I run <code>pip</code> from the console I get this error:</p>
  
  <pre><code>Stevens-MacBook-Pro :: ~ ‹master*› » pip
  zsh: /usr/local/bin/pip: bad interpreter: @@HOMEBREW_PREFIX@@/opt/python/bin/python2.7: no such file or directory
  </code></pre>
  
  <p>Any idea what might be going wrong?</p>