How to default Python3.9 on my Mac using Homebrew?

Posted in :

目前使用的 python3.8 想升級為 python3.9, 但使用 brew update 和 brew upgrade 後還是 python 3.8, 解法如下:

If existing symlinks belong to python 3.7 you should unlink them:

brew unlink python3.8
brew unlink python3.9
brew unlink python

Basically all you need to do:
brew link --force [email protected]

最後下:

brew reinstall [email protected]

就完成了,需要重開機一次,讓系統變數套成新的設定值。

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *