There are a bunch of wrong ways to install Python 3 on your Mac unfortunately. Follow this guide and you’ll save yourself a bunch of pain.

https://opensource.com/article/19/5/python-3-default-mac