Setting python3.2 as default instead of python2.7 on Mac OSX Lion 10.7.5

后端 未结 3 616
有刺的猬
有刺的猬 2020-12-10 16:27

Currently running Mac OS X Lion 10.7.5 , and it has python2.7 as default. In the terminal, i type \'python\' and it automatically pulls up python2.7. I don\'t want that.

3条回答
  •  生来不讨喜
    2020-12-10 17:13

    If you have python 2 and 3 on brew. Following worked for me.

    brew unlink python@2

    brew link python@3 (if not yet linked)

提交回复
热议问题