On Fri, Aug 17, 2012 at 11:05 AM, Prasad, Ramit <ramit.pra...@jpmorgan.com> wrote: > > I am not really familiar with BSD but *nix has the application > update-alternatives. That will do what you want. Otherwise, > you could change the name/location in the bin directory. > It is likely that python is a symlink to python2.6 and all > you need to do is change the symlink to point to python3.2. > If no symlink is used you can rename the binaries instead.
Modifying the default to Python 3 sounds like a bad idea. Platforms are still in transition to 3.x. Some scripts might assume /usr/bin/python links to python2.x. On Debian there's a python3 symlink. You can add your own if FreeBSD doesn't have it. First, if ~/bin doesn't exist, run "mkdir ~/bin"; restart your session, and run "echo $PATH" to verify it's on the search path. Then make the link with "ln -s /usr/bin/python3.2 ~/bin/python3". You'll have to update this when 3.3 is released. If ~/bin isn't on the PATH, edit ~/.profile and add the following: if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi Also, while it's probably a bit much at first, I recommend using virtualenv to configure environments with different versions of Python/packages: http://www.virtualenv.org _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor