OSX Lion default python v 2.6

Oct 13, 11 • sereneNo CommentsRead More »

OSX Lion ships with python 2.7 as the default, but there is a way to make it use 2.6 by default.

The following was retrieved from http://stackoverflow.com/questions/6998545/how-can-i-make-python-2-6-my-default-in-mac-os-x-lion

$ man python 
$ which python /usr/bin/python 
$ python -V Python 2.7.1 
# # temporarily change version # 
$ export VERSIONER_PYTHON_VERSION=2.6 $ python -V Python 2.6.6 
$ unset VERSIONER_PYTHON_VERSION $ python -V Python 2.7.1 
# # persistently change version # 
$ defaults write com.apple.versioner.python Version 2.6 
$ python -V Python 2.6.6 

Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>