Mac upgrade Python version to version 3.7
1. Python3.7 download address: https://www.python.org/downloads/mac-osx/
2. Open the bash_profile file to view the path of 3.7, open the command: vim ~/.bash_profile
3. Rename Python
alias python ="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7"
4. After renaming, how to make the file effective
1) Close the terminal, restart the terminal, and then execute: python --version to check whether Python 3.7 takes effect;
2) Use the command: source ~/.bash_profile to make the file effective, and then check whether Python 3.7 is effective.
As shown below: