How to link home brew python version and set it as default

后端 未结 10 640
春和景丽
春和景丽 2020-12-07 15:57

I just switched from MacPorts to HomeBrew. After installing all the required XCode versions and other software I tried installing python using homebrew: I think it successfu

10条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 16:30

    brew switch to python3 by default, so if you want to still set python2 as default bin python, running:

    brew unlink python && brew link python2 --force
    

提交回复
热议问题