How to set Python's default version to 3.x on OS X?

前端 未结 21 2127
滥情空心
滥情空心 2020-11-22 07:52

I\'m running Mountain Lion and the basic default Python version is 2.7. I downloaded Python 3.3 and want to set it as default.

Currently:

$ python
           


        
21条回答
  •  星月不相逢
    2020-11-22 08:37

    The RIGHT and WRONG way to set Python 3 as default on a Mac

    In this article author discuss three ways of setting default python:

    1. What NOT to do.
    2. What we COULD do (but also shouldn't).
    3. What we SHOULD do!

    All these ways are working. You decide which is better.

提交回复
热议问题