How can I use Homebrew to install both Python 2 and 3 on Mac?

后端 未结 9 794
遇见更好的自我
遇见更好的自我 2020-11-29 14:33

I need to be able to switch back and forth between Python 2 and 3. How do I do that using Homebrew as I don\'t want to mess with path and get into trouble. Right now I have

9条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 15:07

    Alternatively, you probably can just enter "python3" to run your most current version of python3.x and "python" or "python2" to run the latest installed 2.x version.

提交回复
热议问题