The python version that comes with mac os is 2.7, because it needs to be upgraded to python3. The process is as follows:
execute:
brew install python3
In theory, the installation can be successful by executing this command, but the following error is reported:
The reason is that /usr/local/Frameworks does not exist, the solution:
sudo mkdir /usr/local/Frameworks
sudo chown $USER /usr/local/Frameworks
Then re-run `brew install python3` to install successfully.