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

后端 未结 3 613
有刺的猬
有刺的猬 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:21

    You could edit the default python path and point it to python3.2

    Open up ~/.bash_profile in an editor and edit it so it looks like

    PATH="/Library/Frameworks/Python.framework/Versions/3.2/bin:${PATH}" export PATH

提交回复
热议问题