Setting python3.2 as default instead of python2.7 on Mac OSX Lion 10.7.5

macos, python

Solution

The safest way is to set an alias in `~/.bashrc`:

 alias python=python3

That way you avoid breaking things for scripts relaying on `python` being python2.

Problem

Currently running Mac OS X Lion 10.7.5 , and it has python2.7 as default. In the terminal, i type 'python' and it automatically pulls up python2.7. I don't want that. from terminal I have to instead type 'python3.2' if i want to use python3.2. How do i change that?

Original source