title: Set up Brew installed Python 2.7.X as sdk for Intellij / Pycharm
body: <p>I am trying to import the brew installed version of python by emulating the <code>Global Libraries</code> structure existing for the (mostly) working mac os built-in 2.7.2.  However IJ is unable to infer the types or to create the library properly.</p>
  
  <p><strong>Update</strong>  this is a large existing project. Creating a <em>new</em> project just to get a different version of python is not an option.</p>
  
  <p>Here are the steps:</p>
  
  <p>Try to create new Global Library: <strong>Fail</strong> : no python .
  <a href="https://i.stack.imgur.com/HjqOr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HjqOr.jpg" alt="enter image description here"></a></p>
  
  <p>OK, so I use Copy to clone the built-in SDK:</p>
  
  <p><a href="https://i.stack.imgur.com/XkVIH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XkVIH.jpg" alt="enter image description here"></a></p>
  
  <p>Now - let us try to emulate the paths included in the original built-in but with the brew base dir: here is a starting point:</p>
  
  <p><a href="https://i.stack.imgur.com/c93aE.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c93aE.jpg" alt="enter image description here"></a></p>
  
  <p>And here is one of the exact entries from the builtin library:</p>
  
  <p><a href="https://i.stack.imgur.com/0g2QW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0g2QW.jpg" alt="enter image description here"></a></p>
  
  <p>So let us clikc on the <code>+</code> to add it:</p>
  
  <p><a href="https://i.stack.imgur.com/O2752.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O2752.jpg" alt="enter image description here"></a></p>
  
  <p>So .. IJ is unable to handle it properly.  I also tried a half dozen others - all with same <strong>shrug</strong> result from IJ. </p>
  
  <p>So then what is the correct process?</p>
  
  <p><strong>Update</strong>  Here is the project SDK dialog (thanks to scribbles).</p>
  
  <p><a href="https://i.stack.imgur.com/6Thdr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6Thdr.jpg" alt="enter image description here"></a></p>
  
  <p>And trying to add:  **but the "OK" button is not enabled!  So then IJ is not able to load it..</p>
  
  <p><a href="https://i.stack.imgur.com/x19nV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x19nV.jpg" alt="enter image description here"></a></p>