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

后端 未结 9 804
遇见更好的自我
遇见更好的自我 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:15

    Okay, I was struggling with my brew installation of Python3, because I didn't have pip3

    sudo pip3 command not found
    

    and so I did

    brew uninstall --force --ignore-dependencies python3
    

    and installed the regular Python 3.6.2 from official distribution and then I had pip3 and all components were ok.

提交回复
热议问题