Switching Python version installed by Homebrew

后端 未结 2 1094
太阳男子
太阳男子 2021-01-03 11:50

I have Python 3.8 and 3.9 installed via Homebrew:

~ brew list | grep python
python@3.8
python@3.9

I want to use Python 3.9 as my default one

2条回答
  •  长发绾君心
    2021-01-03 12:36

    There is an Homebrew known issue related to side by side install of Python 3.8 / 3.9. To workaround, following commands should work for you:

    brew unlink python@3.9
    brew unlink python@3.8
    brew link --force python@3.9
    

提交回复
热议问题