title: Multiple versions of Python on a Mac
body: <p>I have installed multiple versions of Python. Currently when I do which Python - I believe it still points to the default version of the Python and not to the one that's installed by python2.7. </p>
  
  <p>When I try python2.7 it shows a different location of python2.7</p>
  
  <pre class="lang-none prettyprint-override"><code>PMs-MBP:~ prem$ which python
  /usr/local/bin/python
  PMs-MBP:~ prem$ which python python2.7
  /usr/local/bin/python
  /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
  </code></pre>
  
  <p>What should I change to point the default version (Python) to homebrew version?</p>
  
  <p>I tried to link using the below command but get the below error:</p>
  
  <pre class="lang-none prettyprint-override"><code>PMs-MBP:~ prem$ brew link python2.7
  Error: No such keg: /usr/local/Cellar/python2.7
  </code></pre>