How can I make python 2.6 my default in Mac OS X Lion?

后端 未结 3 1578
梦谈多话
梦谈多话 2020-12-07 23:46

I just upgraded to lion and with it came Python 2.7. I need to use 2.6 as my default python as the project I primarily work on uses 2.6.

3条回答
  •  感情败类
    2020-12-08 00:30

    You have a few options:

    1. Change /usr/bin/python to a link to /usr/bin/python2.6
    2. Put /System/Library/Frameworks/Python.framework/Versions/2.6/bin in your path before /usr/bin
    3. Explicitly tell your scripts to use /usr/bin/python2.6

提交回复
热议问题