I was trying to install the newest version of python, 3.8. But after the installation was complete, I ran
python --version
Python 2.7.16
Is there a way to get rid of the python 2 that came with macOS? I will need to use python 3. Or is there a way to switch to python 3 from python 2?