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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章