- Set Python3 as a default python version on your MacOS.
# Step 1: Install Python3 using homebrew
$ brew install python
# Step 2: Look for the path where the latest python3 is available
dineshsonachalam@macbook ~ % ls -l /usr/local/bin/python*
lrwxr-xr-x 1 dineshsonachalam admin 24 May 30 11:31 /usr/local/bin/python -> /usr/local/bin/python3.9