title: OSX El Capitan: sudo pip install OSError: [Errno: 1] Operation not permitted
body: <p>When I run:</p>
  
  <pre><code>sudo pip install ipython
  </code></pre>
  
  <p>I get the following error</p>
  
  <blockquote>
    <p>OSError: [Errno: 1] Operation not permitted: '/System/Library/Frameworks/Python.framework/Versions/2.7/share'</p>
  </blockquote>
  
  <p>The last command executed tries to create the directory given above.</p>
  
  <p>Also, the following command fails to install iPython without providing any errors.</p>
  
  <pre><code>sudo pip install --user python
  </code></pre>
  
  <p>(I am on Mac OS X El Capitan in case other folks on this OS see the same issue.)</p>