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

问题:

This question already has answers here : 这个问题在这里已经有了答案
Closed 4 months ago . 4 个月前关闭。

I'm running Mountain Lion and the basic default Python version is 2.7.我正在运行 Mountain Lion,基本的默认 Python 版本是 2.7。 I downloaded Python 3.3 and want to set it as default.我下载了 Python 3.3 并想将其设置为默认值。

Currently:目前:

$ python
    version 2.7.5
$ python3.3
    version 3.3

How do I set it so that every time I run $ python it opens 3.3?我如何设置它以便每次运行$ python它都会打开 3.3?


解决方案:

参考一: https://en.stackoom.com/question/1FJHX
参考二: https://stackoom.com/question/1FJHX
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章