How do I make Python 3.5 my default version on MacOS?

后端 未结 7 2174
迷失自我
迷失自我 2020-12-28 10:46

I have just installed Python 3.5.1 on my Mac (running the latest version of OSX). My system came with Python 2.7 installed. When I type IDLE at the Terminal pro

相关标签:
7条回答
  • 2020-12-28 11:22

    By typing python, you are actually referring to a link. You will find its location with $ which python. In my case it was /usr/local/bin/python. go there $open /usr/local/bin/ and just delete the original python, python-config and idle as they are identical to the 2.7 files in the same folder. Then duplicate the 3.5 files and rename them to what you just deleted.

    This also changes the default link other editors like Sublime_ReplPython use and updates it therefore to the 3.5 Version. This was my major concern with the standard installation.

    0 讨论(0)
提交回复
热议问题