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

后端 未结 10 633
春和景丽
春和景丽 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:19

    If you used

    brew install python
    

    before 'unlink' you got

    brew info python
    /usr/local/Cellar/python/2.7.11
    
    python -V
    Python 2.7.10
    

    so do

    brew unlink python && brew link python
    

    and open a new terminal shell

    python -V
    Python 2.7.11
    

提交回复
热议问题