(2011/11/30 追記)
なんだか最近試したら動かなかったのでMacPortsで切り替える方法も紹介。
MacPortsでPythonのバージョンを切り替える方法 - 強火で進め
http://d.hatena.ne.jp/nakamura001/20111129/1322579170
(追記ここまで)
とあるPythonのモジュールをMacPortsでインストールしたら、インストール中のメッセージで以下の出力を見かけました。
sudo port install python_select sudo python_select python26
もしや?と思い
sudo python_select python26
を実行後、バージョンチェック。
python --version
結果は
Python 2.6.6
同じく
sudo python_select python25
を実行後、バージョンチェック。
python --version
結果は
Python 2.5.5
切り替え可能なPythonは -l を付けてこんな感じで実行すると確認出来るみたいです。
python_select -l
【参考】
複数バージョンのPythonを華麗に切り替える - a2c.get.diary
http://d.hatena.ne.jp/a2c/20090119/1232350594
python_select なんてのが有ったんですね。これは便利。