How to Setup Python in MacOS
python
    macos
    2020
  
2023 UPDATE
I wrote an update version of this article, about setting up python on the new ARM-based Mac for macOS Monterey 12.3 and later.
Check Current Version of Python
Let’s check the current version first:
python --version
#check python2 version
python3 --version
#check python3 versionUpdate Python3
If you don’t have Python installed yet, you can simply downloaded the package from official website. For me, since I already installed Python, I just upgrade it by Homebrew, which is a great package manager on MacOS.
brew update
brew upgrade python3Then check the version again
python3 --versionNow it should be up-to-date.



Preview: